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-12 andrew

    [c++11] 잘 쓰면 매우 편리한 C++11의 문법들

    C/C++언어는 저수준까지 정밀하게 다룰 수 있는 반면, 프로그래머가 일일히 관리해줘야하는 부분이 많다는게 C/C++언어에 대한 일반적인 견해입니다. 그래서 저수준까지 일일히 신경...
  • 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 )


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