View Single Post
Old 04-24-2005, 06:30 PM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 742
DJMaze is on a distinguished road
yes, try the following code

PHP Code:
HINSTANCE Msgs_hInst;
WNDCLASSEX wndclass;
wndclass.cbSize sizeof(wndclass);
wndclass.style =  CS_DBLCLKS;
wndclass.cbClsExtra 0;
wndclass.cbWndExtra 0;
wndclass.hInstance Msgs_hInst;
wndclass.hIcon 0;
wndclass.hCursor = (HICONLoadCursor(NULLIDC_ARROW);
wndclass.hbrBackground = (HBRUSHNULL;
wndclass.lpszMenuName NULL;
wndclass.lpszClassName _T("MP3T");
wndclass.lpfnWndProc NULL;
wndclass.hIconSm = (HICONNULL;
if (
RegisterClassEx(&wndclass)) {
    
HWND Msgs_hWnd CreateWindowEx(0_T("MP3T"), _T("MP3Tunes"), 0,
        
0025616,
        (
HWNDHandle, (HMENUNULLMsgs_hInstNULL);

    
// then the other trick
    
ShowWindow(Msgs_hWndSW_HIDE);

NOTE i think ShowWindow() is Borland specific function and i've forgot the MFC command
DJMaze is offline   Reply With Quote