Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: IMPLEMENT_SERIAL - VERSIONABLE_SCHEMA problem Pin
Erudite_Eric25-Oct-11 8:08
Erudite_Eric25-Oct-11 8:08 
QuestionUsing Timer with non-dialog class Pin
aangerma24-Oct-11 22:13
aangerma24-Oct-11 22:13 
AnswerRe: Using Timer with non-dialog class Pin
_AnsHUMAN_ 24-Oct-11 22:30
_AnsHUMAN_ 24-Oct-11 22:30 
GeneralRe: Using Timer with non-dialog class Pin
aangerma24-Oct-11 22:43
aangerma24-Oct-11 22:43 
GeneralRe: Using Timer with non-dialog class Pin
Albert Holguin25-Oct-11 5:02
professionalAlbert Holguin25-Oct-11 5:02 
GeneralRe: Using Timer with non-dialog class Pin
Andrew Brock25-Oct-11 5:50
Andrew Brock25-Oct-11 5:50 
GeneralRe: Using Timer with non-dialog class Pin
Albert Holguin25-Oct-11 8:57
professionalAlbert Holguin25-Oct-11 8:57 
AnswerRe: Using Timer with non-dialog class Pin
Erudite_Eric24-Oct-11 22:35
Erudite_Eric24-Oct-11 22:35 
Just use the win 32 set timer method: http://msdn.microsoft.com/en-us/library/windows/desktop/ms644906(v=vs.85).aspx[^]


Dont forget, MFC just wraps the Win32 API, and even then not all of it (there is a lot of rich unctionality there not available in MFC), and pretty much all MFC functions have a function of the same name in the win32API.

Most of these win32 funcs take a window handle as the first param, and thats generally the only difference between them, and their MFC counterpart, since the MFC one generally calls itself.

So for example the win32 MessageBox() func has a HWND as the first partam, then all the rest are the same as MFC.


You can also call the win32API directly form MFC code. Just use the global namespce operator :: before each call ie:

::MessageBox(hWnd, txt, msg, MB_OK);


You can get window handles for other processes/wondows easilly too. FindWindow() returns a HWND. Its params are eityher the class of the window, or its text (in the title bar).

You can use this to send or post messages, such as WM_COMMAND ones to another window.

Like I say, there is a lot you can do outside of MFC. (Window hooks are particularly interesting things. Very very powerfull.) Smile | :)
==============================

Nothing to say.

GeneralRe: Using Timer with non-dialog class Pin
aangerma24-Oct-11 23:01
aangerma24-Oct-11 23:01 
GeneralRe: Using Timer with non-dialog class Pin
Richard MacCutchan25-Oct-11 0:41
mveRichard MacCutchan25-Oct-11 0:41 
GeneralRe: Using Timer with non-dialog class Pin
Erudite_Eric25-Oct-11 1:05
Erudite_Eric25-Oct-11 1:05 
AnswerRe: Using Timer with non-dialog class Pin
jeron125-Oct-11 4:04
jeron125-Oct-11 4:04 
AnswerRe: Using Timer with non-dialog class Pin
PJ Arends25-Oct-11 6:22
professionalPJ Arends25-Oct-11 6:22 
GeneralRe: Using Timer with non-dialog class Pin
Erudite_Eric25-Oct-11 6:59
Erudite_Eric25-Oct-11 6:59 
GeneralRe: Using Timer with non-dialog class Pin
Richard MacCutchan25-Oct-11 9:55
mveRichard MacCutchan25-Oct-11 9:55 
GeneralRe: Using Timer with non-dialog class Pin
Richard MacCutchan25-Oct-11 10:43
mveRichard MacCutchan25-Oct-11 10:43 
GeneralRe: Using Timer with non-dialog class Pin
PJ Arends25-Oct-11 17:44
professionalPJ Arends25-Oct-11 17:44 
GeneralRe: Using Timer with non-dialog class Pin
PJ Arends25-Oct-11 17:52
professionalPJ Arends25-Oct-11 17:52 
GeneralRe: Using Timer with non-dialog class Pin
Richard MacCutchan25-Oct-11 22:24
mveRichard MacCutchan25-Oct-11 22:24 
AnswerRe: Using Timer with non-dialog class Pin
Chuck O'Toole26-Oct-11 5:09
Chuck O'Toole26-Oct-11 5:09 
GeneralRe: Using Timer with non-dialog class Pin
aangerma26-Oct-11 9:42
aangerma26-Oct-11 9:42 
GeneralRe: Using Timer with non-dialog class Pin
Chuck O'Toole26-Oct-11 9:47
Chuck O'Toole26-Oct-11 9:47 
GeneralRe: Using Timer with non-dialog class Pin
aangerma26-Oct-11 10:17
aangerma26-Oct-11 10:17 
QuestionI don't understand the value of a token strtok_s Pin
jkirkerx24-Oct-11 13:42
professionaljkirkerx24-Oct-11 13:42 
AnswerRe: I don't understand the value of a token strtok_s Pin
Software_Developer24-Oct-11 14:07
Software_Developer24-Oct-11 14:07 

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.