Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Jul 8, 2020
1 parent 1309a00 commit d09f8ec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions DmMain/src/Core/DMHDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ namespace DM
}

if(DM_CreateWindow(lpszXmlId, rect.left,rect.top,rect.Width(),rect.Height(), hWndParent, bShadow ? NWSDS_DWMSHADOW : NWSDS_NULL))
{
SendMessage(WM_INITDIALOG, (WPARAM)m_hWnd);//发送init消息

// 修改滞后消息,让业务机会在InitDialog调整窗口大小滞后还能居中
{
GetClientRect(rect);
if (!rect.IsRectEmpty())
CenterWindow();

SendMessage(WM_INITDIALOG, (WPARAM)m_hWnd);//发送init消息

/*
解决安装qq五笔导致“退出提醒窗口”无法出现的问题---此问题在yggui中出现
HWND_NOTOPMOST:将窗口置于所有非顶层窗口之上(即在所有顶层窗口之后)。如果窗口已经是非顶层窗口则该标志不起作用。
Expand Down

0 comments on commit d09f8ec

Please sign in to comment.