Andrew's Garage

Shrunk Expand

Primary Navigation

Placing Dialog at the center

BOOL CTest11Dlg::OnInitDialog()
{
CDialog::OnInitDialog();
CWnd* pWnd = GetDesktopWindow();
CenterWindow(pWnd);
return TRUE
}

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related


Posted on 2014-07-26 5:24 AM by andrew Comment
📂This entry was posted in C/C++ MFC & WINDOWS 참고를 위한 저장물

Related Posts

  • 2015-05-08 andrew

    vsftpd on Centos server 530 login incorrect error – fixed

     The settings for disabling anonymous login and allowing local users where set in /etc/vsftpd.conf....
  • 2014-06-12 andrew

    WebtoB+Jeus 가상호스트설정

    WebtoB+Jeus 가상호스트설정 www.bbb.co.kr 와 www.bbb.co.kr/aaa 는 도메인 주소와 포트번호가 동일하므로 VHOST를 이용한 구분은 불가능합니다. U...
« Visual Studio 2010 이상 에서 OnInitDialog 추가하기 ECLPISE가 이상 동작 할때 »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

( optional )


©2026 boots Entries RSS and Comments RSS Child theme Boots of Raindrops Theme