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-07-26 andrew

    [MFC] Window 창 크기 조정

    sdi로 프로젝트를 생성했다고 가정하고,   MainFrm.cpp의 BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)에서...
  • 2014-06-13 andrew

    네트워크 트래픽을 줄이자, Apache gzip 사용

    XML, JSON 방식으로 데이터를 전송할 때 그 크기가 1MB이상 되면 전송시간이 상당히 많이 걸리는 것을 볼 수 있다. 데이타 량이 많으면 트래픽이 늘어나고 특별히 웹호스팅을...
« 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