Registriert seit: 10. Okt 2006
Ort: 's-Hertogenbosch, Die Niederlande
222 Beiträge
RAD-Studio 2010 Arc
|
Re: Convert sample from platform SDK to Delphi
22. Dez 2006, 12:18
What's referenced by (LPVOID)this)?
Code:
HWND CPropSheetHost::_CreateHiddenWindow()
{
WNDCLASS wc;
if(!GetClassInfo(m_hInst, m_szHiddenWindowClass, &wc))
{
ZeroMemory(&wc, sizeof(wc));
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = (WNDPROC)_HiddenWindowProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = sizeof(CPropSheetHost*);
wc.hInstance = m_hInst;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wc.lpszClassName = m_szHiddenWindowClass;
if(!RegisterClass(&wc))
{
return NULL;
}
}
m_hwndHidden = CreateWindowEx( 0,
m_szHiddenWindowClass,
NULL,
WS_OVERLAPPED |
0,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
NULL,
NULL,
m_hInst,
(LPVOID)this);
return m_hwndHidden;
}
|
|
Zitat
|