Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using SetWindowPos

Status
Not open for further replies.

jonnyknowsbest

Technical User
Feb 3, 2004
163
GB
I have a class containing the following function prototype:
void SetPosition (mrInt iX, mrInt iY);

and it is defined as follows:
void mrWindow::SetPosition (mrInt iX, mrInt iY)
{
SetWindowPos (m_hWindow, HWND_TOP, iX, iY, 0, 0, SWP_NOSIZE);
}

but when i try to use this function, the position of the window is still using the Windows Default, rather than using this function, any ideas

Regards
 
Try to call InvalidateRect() after :: SetWindowPos (,,,,,SWP_NOZORDER|SWP_NOSIZE) call.
-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top