mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +00:00
[SHIMGVW] Main window class must be "ShImgVw:CPreviewWnd"
and window style is (WS_VISIBLE | WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW). CORE-19358
This commit is contained in:
parent
e4d03f471b
commit
02312c7bf1
2 changed files with 6 additions and 4 deletions
|
@ -1200,19 +1200,19 @@ ImageView_CreateWindow(HWND hwnd, LPCWSTR szFileName)
|
|||
pLoadImage(szFileName);
|
||||
|
||||
// Create the window
|
||||
WndClass.lpszClassName = L"shimgvw_window";
|
||||
WndClass.lpszClassName = WC_SHIMGVW;
|
||||
WndClass.lpfnWndProc = ImageView_WndProc;
|
||||
WndClass.hInstance = hInstance;
|
||||
WndClass.style = CS_HREDRAW | CS_VREDRAW;
|
||||
WndClass.hIcon = LoadIconW(hInstance, MAKEINTRESOURCEW(IDI_APP_ICON));
|
||||
WndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
WndClass.hCursor = LoadCursorW(NULL, (LPCWSTR)IDC_ARROW);
|
||||
WndClass.hbrBackground = NULL; /* less flicker */
|
||||
|
||||
if (!RegisterClassW(&WndClass)) return -1;
|
||||
|
||||
LoadStringW(hInstance, IDS_APPTITLE, szBuf, _countof(szBuf));
|
||||
hMainWnd = CreateWindowExW(0, L"shimgvw_window", szBuf,
|
||||
WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CAPTION,
|
||||
hMainWnd = CreateWindowExW(WS_EX_WINDOWEDGE, WC_SHIMGVW, szBuf,
|
||||
WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
0, 0, NULL, NULL, hInstance, NULL);
|
||||
|
||||
|
|
|
@ -20,3 +20,5 @@ typedef struct SHIMGVW_FILENODE_INTERNAL
|
|||
struct SHIMGVW_FILENODE_INTERNAL *Prev;
|
||||
struct SHIMGVW_FILENODE_INTERNAL *Next;
|
||||
} SHIMGVW_FILENODE;
|
||||
|
||||
#define WC_SHIMGVW L"ShImgVw:CPreviewWnd"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue