Quote:
Wenn du schon meinst du bist der King, dann bitte richtig ...
|
Dasselbe trifft auch auf dich zu.
Quote:
Code:
MoveParentCenter();
Muss mit
Code:
CRect rectLayout = m_pWndRoot->GetLayoutRect();
Move( (int)( rectLayout.Width() / 2 - m_rectWindow.Width() / 2 ), (int)( rectLayout.Height() * 0.65 ) );
ersetzt werden.
Wenn du die Coordinaten anpassen willst dan hier:
Code:
Move( (int)( rectLayout.Width() / 2 - m_rectWindow.Width() / 2 ), (int)( rectLayout.Height() * 0.65 ) );
Dashier ist die X Coordinate:
Code:
(int)( rectLayout.Width() / 2 - m_rectWindow.Width() / 2 )
Und dashier die Y Coordinate
Code:
(int)( rectLayout.Height() * 0.65 )
Nach belieben anpassen.
Oder Gleich Top Mittig mit:
Code:
CRect rectLayout = m_pWndRoot->GetLayoutRect();
Move( (int)( rectLayout.left + (rectLayout.Width() / 2) - (m_rectWindow.Width() /2) ), (int)0 );
Und voilà
Quote:
========== Erstellen: 1 erfolgreich, 0 fehlerhaft, 0 aktuell, 0 übersprungen ==========
|