Skip to content

Commit

Permalink
Fix a white/black window fades out on startup when using Direct2D.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Apr 12, 2020
1 parent 220c405 commit 827c385
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Notepad2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,8 @@ LRESULT MsgCreate(HWND hwnd, WPARAM wParam, LPARAM lParam) {
Style_DetectBaseFontSize(hwnd);

// Setup edit control
// create edit control and frame with zero size to avoid
// a white/black window fades out on startup when using Direct2D.
hwndEdit = EditCreate(hwnd);
efrData.hwnd = hwndEdit;

Expand All @@ -1722,7 +1724,7 @@ LRESULT MsgCreate(HWND hwnd, WPARAM wParam, LPARAM lParam) {
WC_LISTVIEW,
NULL,
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
0, 0, 100, 100,
0, 0, 0, 0,
hwnd,
(HMENU)IDC_EDITFRAME,
hInstance,
Expand Down

0 comments on commit 827c385

Please sign in to comment.