Click here to Skip to main content
16,011,996 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in Closing a file window. Pin
ramana.g25-Feb-08 23:33
ramana.g25-Feb-08 23:33 
GeneralRe: Problem in Closing a file window. Pin
Jeet_IT_in25-Feb-08 23:46
Jeet_IT_in25-Feb-08 23:46 
GeneralRe: Problem in Closing a file window. Pin
Rajesh R Subramanian26-Feb-08 0:03
professionalRajesh R Subramanian26-Feb-08 0:03 
QuestionRe: Problem in Closing a file window. Pin
David Crow26-Feb-08 3:29
David Crow26-Feb-08 3:29 
GeneralReceived the Message With SMTP ( Get Mail ) Pin
MmTurner25-Feb-08 22:03
MmTurner25-Feb-08 22:03 
GeneralRe: Received the Message With SMTP ( Get Mail ) Pin
Tarmo Kalda25-Feb-08 23:08
Tarmo Kalda25-Feb-08 23:08 
GeneralRe: Received the Message With SMTP ( Get Mail ) Pin
David Crow26-Feb-08 3:29
David Crow26-Feb-08 3:29 
GeneralWM_TIMER message never arrives [modified] Pin
Hanan88825-Feb-08 21:59
Hanan88825-Feb-08 21:59 
In my Win32 application, I register several window classes, each class have a different message procedure. Then, I create several windows.

I call SetTimer(m_hWnd, SPECIFIC_MESSAGE_CONSANT,1000, NULL);

As far as I know:
This should send a WM_TIMER with wParam = SPECIFIC_MESSAGE_CONSANT, with one second time delay.
To the message procedure of the window class that m_hWnd (HWND) was created from.

where SPECIFIC_MESSAGE_CONSANT = 11761

In my int APIENTRY _tWinMain()

I do:

MSG msg;
   ZeroMemory( &msg, sizeof(msg) );
   while( msg.message!=WM_QUIT )
   {
       if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) )
       {
       //my WM_TIMER dont get here
           TranslateMessage( &msg );
           DispatchMessage( &msg );
       }
       else
        {
       }
   }


WM_TIMER never arrives to the place marked above.

I tried PostMessage(m_hWnd,WM_TIMER,SPECIFIC_MESSAGE_CONSANT,NULL) ->
got exactly where expected.

Still, I must have the time delay.

modified on Tuesday, February 26, 2008 6:20 AM

QuestionRe: WM_TIMER message never arrives Pin
Rajkumar R25-Feb-08 22:27
Rajkumar R25-Feb-08 22:27 
GeneralRe: WM_TIMER message never arrives Pin
Hanan88825-Feb-08 22:38
Hanan88825-Feb-08 22:38 
GeneralRe: WM_TIMER message never arrives Pin
Rajkumar R25-Feb-08 23:59
Rajkumar R25-Feb-08 23:59 
GeneralRe: WM_TIMER message never arrives Pin
Hanan88826-Feb-08 0:20
Hanan88826-Feb-08 0:20 
GeneralRe: WM_TIMER message never arrives Pin
Rajkumar R26-Feb-08 0:41
Rajkumar R26-Feb-08 0:41 
GeneralRe: WM_TIMER message never arrives Pin
Hanan88826-Feb-08 0:57
Hanan88826-Feb-08 0:57 
GeneralRe: WM_TIMER message never arrives Pin
ramana.g25-Feb-08 22:30
ramana.g25-Feb-08 22:30 
GeneralRe: WM_TIMER message never arrives Pin
Hanan88825-Feb-08 22:42
Hanan88825-Feb-08 22:42 
GeneralRe: WM_TIMER message never arrives Pin
KarstenK25-Feb-08 22:41
mveKarstenK25-Feb-08 22:41 
GeneralRe: WM_TIMER message never arrives Pin
Hanan88825-Feb-08 22:47
Hanan88825-Feb-08 22:47 
GeneralRe: WM_TIMER message never arrives Pin
Michael Schubert25-Feb-08 22:43
Michael Schubert25-Feb-08 22:43 
GeneralRe: WM_TIMER message never arrives Pin
Hanan88825-Feb-08 22:52
Hanan88825-Feb-08 22:52 
GeneralRe: WM_TIMER message never arrives Pin
ramana.g25-Feb-08 22:59
ramana.g25-Feb-08 22:59 
GeneralRe: WM_TIMER message never arrives Pin
Hanan88825-Feb-08 23:07
Hanan88825-Feb-08 23:07 
GeneralRe: WM_TIMER message never arrives Pin
Tarmo Kalda25-Feb-08 23:13
Tarmo Kalda25-Feb-08 23:13 
GeneralRe: WM_TIMER message never arrives Pin
Hanan88825-Feb-08 23:25
Hanan88825-Feb-08 23:25 
GeneralRe: WM_TIMER message never arrives Pin
Michael Schubert25-Feb-08 23:01
Michael Schubert25-Feb-08 23:01 

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.