mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
- fix some typos
svn path=/trunk/; revision=61656
This commit is contained in:
parent
a3bcba8537
commit
f606fadb87
|
@ -1137,7 +1137,7 @@ HRESULT WINAPI DrawNCPreview(HDC hDC,
|
||||||
PNONCLIENTMETRICSW pncMetrics,
|
PNONCLIENTMETRICSW pncMetrics,
|
||||||
COLORREF* lpaRgbValues)
|
COLORREF* lpaRgbValues)
|
||||||
{
|
{
|
||||||
WNDCLASSEXW DummyPreviwWindowClass;
|
WNDCLASSEXW DummyPreviewWindowClass;
|
||||||
HWND hwndDummy;
|
HWND hwndDummy;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
HTHEMEFILE hThemeFile;
|
HTHEMEFILE hThemeFile;
|
||||||
|
@ -1148,16 +1148,16 @@ HRESULT WINAPI DrawNCPreview(HDC hDC,
|
||||||
* and make use of the ncmetrics and colors passed as parameters */
|
* and make use of the ncmetrics and colors passed as parameters */
|
||||||
|
|
||||||
/* Create a dummy window that will be used to trick the paint funtions */
|
/* Create a dummy window that will be used to trick the paint funtions */
|
||||||
memset(&DummyPreviwWindowClass, 0, sizeof(DummyPreviwWindowClass));
|
memset(&DummyPreviewWindowClass, 0, sizeof(DummyPreviewWindowClass));
|
||||||
DummyPreviwWindowClass.cbSize = sizeof(DummyPreviwWindowClass);
|
DummyPreviewWindowClass.cbSize = sizeof(DummyPreviewWindowClass);
|
||||||
DummyPreviwWindowClass.lpszClassName = L"DummyPreviwWindowClass";
|
DummyPreviewWindowClass.lpszClassName = L"DummyPreviewWindowClass";
|
||||||
DummyPreviwWindowClass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
|
DummyPreviewWindowClass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
|
||||||
DummyPreviwWindowClass.hInstance = hDllInst;
|
DummyPreviewWindowClass.hInstance = hDllInst;
|
||||||
DummyPreviwWindowClass.lpfnWndProc = DefWindowProcW;
|
DummyPreviewWindowClass.lpfnWndProc = DefWindowProcW;
|
||||||
if (!RegisterClassExW(&DummyPreviwWindowClass))
|
if (!RegisterClassExW(&DummyPreviewWindowClass))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
hwndDummy = CreateWindowExW(0, L"DummyPreviwWindowClass", L"Active window", WS_OVERLAPPEDWINDOW,30,30,300,150,0,0,hDllInst,NULL);
|
hwndDummy = CreateWindowExW(0, L"DummyPreviewWindowClass", L"Active window", WS_OVERLAPPEDWINDOW,30,30,300,150,0,0,hDllInst,NULL);
|
||||||
if (!hwndDummy)
|
if (!hwndDummy)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
|
@ -1190,7 +1190,7 @@ HRESULT WINAPI DrawNCPreview(HDC hDC,
|
||||||
|
|
||||||
/* Cleanup */
|
/* Cleanup */
|
||||||
DestroyWindow(hwndDummy);
|
DestroyWindow(hwndDummy);
|
||||||
UnregisterClassW(L"DummyPreviwWindowClass", hDllInst);
|
UnregisterClassW(L"DummyPreviewWindowClass", hDllInst);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue