Click here to Skip to main content
15,915,509 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: count digits in an integer type Pin
1-May-02 5:14
suss1-May-02 5:14 
GeneralRe: count digits in an integer type Pin
Chris Losinger1-May-02 6:16
professionalChris Losinger1-May-02 6:16 
GeneralRe: count digits in an integer type Pin
Jamie Hale1-May-02 8:11
Jamie Hale1-May-02 8:11 
GeneralRe: count digits in an integer type Pin
1-May-02 11:39
suss1-May-02 11:39 
GeneralPerforming registration (Halts) Pin
ssirisha1-May-02 3:40
ssirisha1-May-02 3:40 
GeneralRe: Performing registration (Halts) SOLVED Pin
ssirisha1-May-02 4:20
ssirisha1-May-02 4:20 
GeneralBatch File Pin
Aoife1-May-02 3:05
Aoife1-May-02 3:05 
GeneralMy app cannot be moved or close, doesen't react to mouseclicks on the window Pin
1-May-02 2:27
suss1-May-02 2:27 
I have made an app in Visual C++, but i can't move or close it, it's like it doesen't react on mouseclicks (but the controls on the window works fine). however, the only thing that doesen't seem to work is mouseclicks on the app, when i right click on the app in the taskbar and press the "Move" menu item and then move it, it works, and the close command also works in that menu... here's the winmain code:

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
MSG msg;

ghWnd = CreateDialog (hInstance, MAKEINTRESOURCE(IDD_MAIN), NULL, WndProc);
ShowWindow (ghWnd, SW_SHOW);
UpdateWindow (ghWnd);

while (GetMessage (&msg, NULL, 0, 0))
{
TranslateMessage (&msg);
DispatchMessage (&msg);
}

return msg.wParam;
}



and here's the WndProc:

BOOL CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_DESTROY:
RegSave(hWnd);
PostQuitMessage (0);
break;
default:
return DefWindowProc (hWnd, uMsg, wParam, lParam);
break;
}

return (0L);
}


anyone know what could be wrong?

thanks all!
GeneralRe: My app cannot be moved or close, doesen't react to mouseclicks on the window Pin
Rickard Andersson201-May-02 4:13
Rickard Andersson201-May-02 4:13 
GeneralRe: My app cannot be moved or close, doesen't react to mouseclicks on the window Pin
1-May-02 4:25
suss1-May-02 4:25 
GeneralRe: My app cannot be moved or close, doesen't react to mouseclicks on the window Pin
Roger Stewart1-May-02 8:35
professionalRoger Stewart1-May-02 8:35 
GeneralRe: My app cannot be moved or close, doesen't react to mouseclicks on the window Pin
Tim Smith1-May-02 8:42
Tim Smith1-May-02 8:42 
GeneralMSWord 2000 events Pin
Ram Cronus1-May-02 1:48
Ram Cronus1-May-02 1:48 
GeneralForce 'OnFileSaveAs' problem Pin
LittleYellowBird1-May-02 1:08
LittleYellowBird1-May-02 1:08 
GeneralRe: Force 'OnFileSaveAs' problem Pin
LittleYellowBird1-May-02 1:18
LittleYellowBird1-May-02 1:18 
GeneralRe: Force 'OnFileSaveAs' problem Pin
Lucky the code machine1-May-02 1:35
Lucky the code machine1-May-02 1:35 
GeneralRe: Force 'OnFileSaveAs' problem Pin
LittleYellowBird1-May-02 23:30
LittleYellowBird1-May-02 23:30 
GeneralRe: Force 'OnFileSaveAs' problem Pin
Lucky the code machine3-May-02 7:44
Lucky the code machine3-May-02 7:44 
QuestionHow to create DOM object? Pin
Hans Ruck1-May-02 1:03
Hans Ruck1-May-02 1:03 
AnswerRe: How to create DOM object? Pin
Matt Philmon1-May-02 1:53
Matt Philmon1-May-02 1:53 
GeneralRe: How to create DOM object? Pin
Hans Ruck1-May-02 1:59
Hans Ruck1-May-02 1:59 
GeneralRe: How to create DOM object? Pin
Matt Philmon1-May-02 2:15
Matt Philmon1-May-02 2:15 
GeneralProblem with menu Pin
1-May-02 0:23
suss1-May-02 0:23 
GeneralRe: Problem with menu Pin
Matt Philmon1-May-02 1:54
Matt Philmon1-May-02 1:54 
GeneralRe: Problem with menu Pin
Renjith Ramachandran1-May-02 7:36
Renjith Ramachandran1-May-02 7:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.