I should add I am not using MFC. Here is my register window and create window code:
Code: Select all
bool AyaTaskbarNotifier::Register( HINSTANCE hInstance )
{
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;
wcex.lpfnWndProc = TaskbarNotifierWndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = NULL;
wcex.lpszMenuName = 0;
wcex.lpszClassName = TEXT("ImvoxClient.TaskbarNotifier");
wcex.hIcon = 0;
wcex.hIconSm = 0;
return RegisterClassEx(&wcex) != 0;
}
Code: Select all
// Create our container window.
hwndFlashPlayerControl =
CreateWindowEx(WS_EX_LAYERED, /* Use style WS_EX_LAYERED! */
WC_FLASH,
NULL,
WS_POPUP | WS_VISIBLE, /* Use style WS_POPUP! */
rc.left,
rc.top,
rc.right - rc.left,
rc.bottom - rc.top,
NULL,
NULL,
NULL,
NULL);