1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
//calling the create window function
m_hwnd = ::CreateWindowEx(WS_EX_TOPMOST|WS_EX_TOOLWINDOW, m_lpszClassName,
m_lpszClassName, WS_POPUP, x, y,
m_dwWidth, m_dwHeight, NULL, NULL, NULL, this);
//the window process function
static LRESULT CALLBACK ExtWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
static MiniWinImage * mwi = NULL;
if(uMsg == WM_CREATE)
{
mwi = (MiniWinImage*)((LPCREATESTRUCT)lParam)->lpCreateParams;
}
if(mwi)
return mwi->WindowProc(hwnd, uMsg, wParam, lParam);
else
return DefWindowProc (hwnd, uMsg, wParam, lParam);
}
|