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

  • 2014-08-19 andrew

    API 브라우저 띄우기

    ShellExecute(NULL, "open", "http://naver.com", "", "", SW_SHOWNORMAL);  
  • 2014-06-12 andrew

    페이지로딩시 메시지 표시

    페이지로딩시 메시지 표시 어떻게 동작하느냐..브라우져가 페이지를 읽을때 차례대로 읽습니다.그러면 소스중 맨위에 있는것부터 보여지게 되겠죠.. 1번 스크립트가 맨처음 보여 집니다.(...
« 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