Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCopyFileEx notification?? Pin
Paul Farry1-Nov-03 14:50
professionalPaul Farry1-Nov-03 14:50 
AnswerRe: CopyFileEx notification?? Pin
Blake Coverett1-Nov-03 15:36
Blake Coverett1-Nov-03 15:36 
QuestionC++ imagemap/clickable image? Pin
John Tipper1-Nov-03 12:55
John Tipper1-Nov-03 12:55 
AnswerRe: C++ imagemap/clickable image? Pin
Andrew Walker1-Nov-03 15:02
Andrew Walker1-Nov-03 15:02 
GeneralCTreeCtrl problem Pin
_Sin1-Nov-03 11:11
_Sin1-Nov-03 11:11 
GeneralRun-time objects and CRuntimeClass Pin
Antti Keskinen1-Nov-03 10:08
Antti Keskinen1-Nov-03 10:08 
GeneralSimple MFC Timer dos not work! Pin
ahmetaa1-Nov-03 8:34
ahmetaa1-Nov-03 8:34 
GeneralRe: Simple MFC Timer dos not work! Pin
Antti Keskinen1-Nov-03 10:55
Antti Keskinen1-Nov-03 10:55 
Go check your 'MainFrm.cpp'. In the top of it, locate a 'BEGIN_MESSAGE_MAP' - 'END_MESSAGE_MAP' pair. Between these two lines, look for 'ON_WM_TIMER ()' entry.

If this entry doesn't exist, add it manually between the linepairs, so that your code looks like this:

<br />
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)<br />
    ....<br />
    ON_WM_TIMER ()<br />
    ...<br />
END_MESSAGE_MAP()<br />


The '...' mean other entries in the message map. Do not modify these, if there are any. Just add an empty line and write your new entry there.

Now, whenever a WM_TIMER -event occurs, the function 'OnTimer' gets called.

If the timer still refuses to co-operate, start Microsoft Spy and look for messages sent to your application when it is running. If you don't see the 'WM_TIMER' messages popping in there regularly, then your SetTimer-function fails to create a timer. If it displays 'WM_TIMER' messages, then see below.

Remember to add the 'KillTimer' function call to the end of your application. If you leave the timer ticking after your window is destroyed (done by the Framework), future timers may behave incorrectly. A reboot helps remove unwanted timers if they've been left.

Greetings from,
Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Simple MFC Timer dos not work! Pin
ahmetaa1-Nov-03 12:12
ahmetaa1-Nov-03 12:12 
QuestionHow to access a Global variable from another Dialog box. Pin
Deepak Samuel1-Nov-03 7:05
Deepak Samuel1-Nov-03 7:05 
AnswerRe: How to access a Global variable from another Dialog box. Pin
valikac1-Nov-03 7:07
valikac1-Nov-03 7:07 
AnswerRe: How to access a Global variable from another Dialog box. Pin
Terry O'Nolley1-Nov-03 9:51
Terry O'Nolley1-Nov-03 9:51 
GeneralRe: How to access a Global variable from another Dialog box. Pin
Markyg2-Nov-03 15:21
Markyg2-Nov-03 15:21 
GeneralOutlook Automation (C++) Pin
Anonymous1-Nov-03 6:43
Anonymous1-Nov-03 6:43 
GeneralProperly subclassing list box Pin
georgiek501-Nov-03 3:49
georgiek501-Nov-03 3:49 
GeneralRe: Properly subclassing list box Pin
Michael Dunn1-Nov-03 5:45
sitebuilderMichael Dunn1-Nov-03 5:45 
GeneralDisplaying Keyboard hook processes Pin
imranhabib1-Nov-03 3:40
imranhabib1-Nov-03 3:40 
GeneralRe: Displaying Keyboard hook processes Pin
Duncan Edwards Jones1-Nov-03 4:05
professionalDuncan Edwards Jones1-Nov-03 4:05 
GeneralRe: Displaying Keyboard hook processes Pin
imranhabib1-Nov-03 10:15
imranhabib1-Nov-03 10:15 
Generalfrom where can i get shlobj.h for version 5.0 of shell32.dll Pin
User 2155971-Nov-03 3:17
User 2155971-Nov-03 3:17 
GeneralRe: from where can i get shlobj.h for version 5.0 of shell32.dll Pin
Michael Dunn1-Nov-03 5:47
sitebuilderMichael Dunn1-Nov-03 5:47 
GeneralRe: from where can i get shlobj.h for version 5.0 of shell32.dll Pin
User 2155971-Nov-03 19:03
User 2155971-Nov-03 19:03 
GeneralRe: from where can i get shlobj.h for version 5.0 of shell32.dll Pin
Ravi Bhavnani2-Nov-03 8:39
professionalRavi Bhavnani2-Nov-03 8:39 
GeneralMSDN Sample can not run on Window XP. Pin
George21-Nov-03 3:09
George21-Nov-03 3:09 
GeneralCreating a Child Process with Redirected Input and Output Pin
Highersong1-Nov-03 2:12
Highersong1-Nov-03 2:12 

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.