Click here to Skip to main content
11,429,345 members (69,182 online)
Click here to Skip to main content
Alternative Tip/Trick

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;


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


About the Author

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

Comments and Discussions

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