Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnInitDialog and 'return TRUE' Pin
Scott H. Settlemier18-Mar-03 2:10
Scott H. Settlemier18-Mar-03 2:10 
GeneralLogoff User Pin
Anders Molin18-Mar-03 1:44
professionalAnders Molin18-Mar-03 1:44 
GeneralRe: Logoff User Pin
Scott H. Settlemier18-Mar-03 1:58
Scott H. Settlemier18-Mar-03 1:58 
GeneralRe: Logoff User Pin
Scott H. Settlemier18-Mar-03 2:07
Scott H. Settlemier18-Mar-03 2:07 
GeneralRe: Logoff User Pin
Anders Molin18-Mar-03 2:15
professionalAnders Molin18-Mar-03 2:15 
GeneralRe: Logoff User Pin
User 665818-Mar-03 1:59
User 665818-Mar-03 1:59 
GeneralRe: Logoff User Pin
Anders Molin18-Mar-03 2:16
professionalAnders Molin18-Mar-03 2:16 
QuestionSetTimer() is synchronized? Pin
Moak18-Mar-03 1:25
Moak18-Mar-03 1:25 
Hi,
I like to use ::SetTimer() with a callback function, rather than having a CWnd::OnTimer() handler. Is it still synchronized with my other window message handlers... all in one thread context etc, no overlapping calls?

I use ::SetTimer() in a class not derived from CWnd, that's why I ask. Hmm, I think it is synchronized, so I don't need to use mutex or a critical section. But I want to go sure!

MSDN says: "When you specify a TimerProc callback function, the default window procedure calls the callback function when it processes WM_TIMER". Since my class with the timer is not derived from CWnd, how does the timer callback work?

Thanks, Moak
AnswerRe: SetTimer() is synchronized? Pin
Scott H. Settlemier18-Mar-03 1:43
Scott H. Settlemier18-Mar-03 1:43 
GeneralRe: SetTimer() is synchronized? Pin
Moak18-Mar-03 1:56
Moak18-Mar-03 1:56 
QuestionHow to create a phonebook entry? Pin
Jump_Around18-Mar-03 1:12
Jump_Around18-Mar-03 1:12 
AnswerRe: How to create a phonebook entry? Pin
valikac18-Mar-03 8:57
valikac18-Mar-03 8:57 
QuestionSafeArrayCreateVector(), how should I destroy it? Pin
Joan M18-Mar-03 1:09
professionalJoan M18-Mar-03 1:09 
GeneralMemory functions? I'd like to know how much free memory remains... Pin
Joan M18-Mar-03 1:03
professionalJoan M18-Mar-03 1:03 
GeneralRe: Memory functions? I'd like to know how much free memory remains... Pin
Ravi Bhavnani18-Mar-03 2:23
professionalRavi Bhavnani18-Mar-03 2:23 
GeneralRe: Memory functions? I'd like to know how much free memory remains... Pin
Joan M18-Mar-03 2:58
professionalJoan M18-Mar-03 2:58 
GeneralVC++ project/workspace question Pin
7stud18-Mar-03 0:15
7stud18-Mar-03 0:15 
GeneralRe: VC++ project/workspace question Pin
Pavel Klocek18-Mar-03 0:26
Pavel Klocek18-Mar-03 0:26 
GeneralRe: VC++ project/workspace question Pin
7stud18-Mar-03 9:28
7stud18-Mar-03 9:28 
GeneralUsing C functions in Visual C++ Pin
Geert Craessaerts17-Mar-03 23:24
Geert Craessaerts17-Mar-03 23:24 
GeneralRe: Using C functions in Visual C++ Pin
_Theo_17-Mar-03 23:53
_Theo_17-Mar-03 23:53 
GeneralRe: Using C functions in Visual C++ Pin
Vimal Earnest17-Mar-03 23:58
Vimal Earnest17-Mar-03 23:58 
GeneralRe: Using C functions in Visual C++ Pin
Geert Craessaerts18-Mar-03 0:12
Geert Craessaerts18-Mar-03 0:12 
GeneralRe: Using C functions in Visual C++ Pin
jhwurmbach18-Mar-03 1:54
jhwurmbach18-Mar-03 1:54 
GeneralRe: Using C functions in Visual C++ Pin
Jambolo23-Mar-03 10:17
Jambolo23-Mar-03 10:17 

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.