Click here to Skip to main content
12,634,107 members (23,379 online)
Click here to Skip to main content
Add your own
alternative version

Stats

3.7K views
4 bookmarked
Posted

CenterWindow in WIN32

, 4 Oct 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
There is ATL CWindow method CenterWindow:void CenterWnd(HWND hWnd){ CWindow wnd; wnd.Attach(hWnd); wnd.CenterWindow(NULL); wnd.Detach();}
There is ATL CWindow method CenterWindow:

void CenterWnd(HWND hWnd)
{
    CWindow wnd;
    wnd.Attach(hWnd);
    wnd.CenterWindow(NULL);
    wnd.Detach();
}

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Nick Kulikovsky
Architect self employed
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161208.2 | Last Updated 4 Oct 2011
Article Copyright 2011 by Nick Kulikovsky
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid