Hide an MFC dialog window

后端 未结 6 2089
轮回少年
轮回少年 2020-12-19 17:46

I have written an MFC dialog based application which is launched by some another application. For now, I have not added any code. It is just the default files that I got. Th

6条回答
  •  难免孤独
    2020-12-19 18:05

    The showWindow method has 2 variable.

    • handle of window
    • nCmdShow(Controls how the window is to be shown)

      BOOL WINAPI ShowWindow( In HWND hWnd, In int nCmdShow );

      HWND hWnd = GetSafeHwnd();

      ShowWindow(hWnd,SW_HIDE);

    See HERE

提交回复
热议问题