3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

非アクティブになってもアクティブであるかのようなウィンドウフレームを描画する

Posted at

備忘録です。

BOOL CMainFrame::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
	if (message == WM_NCACTIVATE) {
		return CFrameWnd::OnWndMsg(message, TRUE, 0, pResult);
	}
	return CFrameWnd::OnWndMsg(message, wParam, lParam, pResult);
}

WM_NCACTIVATE に対する応答で、 wParam=TRUE 、 lParam=0 で DefWindowProc を呼ぶと、ウィンドウが非アクティブになっても、枠の描画はアクティブ状態のような見た目を保つ。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?