bool cef_dark_window::SubclassWindow(HWND hWnd) { InitDrawingResources(); if (cef_window::SubclassWindow(hWnd)) { InitializeWindowForDarkUI(); return true; } return false; }
// WM_CREATE hander BOOL cef_dark_aero_window::HandleCreate() { RECT rcClient; GetWindowRect(&rcClient); // Inform application of the frame change. SetWindowPos(NULL, rcClient.left, rcClient.top, ::RectWidth(rcClient), ::RectHeight(rcClient), SWP_FRAMECHANGED); InitDrawingResources(); mReady = true; return TRUE; }
bool cef_dark_aero_window::SubclassWindow(HWND hWnd) { InitDrawingResources(); if (cef_window::SubclassWindow(hWnd)) { RECT rcClient; GetWindowRect(&rcClient); // Inform application of the frame change. SetWindowPos(NULL, rcClient.left, rcClient.top, ::RectWidth(rcClient), ::RectHeight(rcClient), SWP_FRAMECHANGED); mReady = true; return TRUE; } return FALSE; }
// WM_NCCREATE handler BOOL cef_dark_window::HandleNcCreate() { InitDrawingResources(); InitializeWindowForDarkUI(); return FALSE; }