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

C / C++ / MFC

 
GeneralRe: Make Static Text (CEdit) to detect mouse click Pin
valikac26-Dec-03 5:37
valikac26-Dec-03 5:37 
GeneralRe: Make Static Text (CEdit) to detect mouse click Pin
Michael Dunn26-Dec-03 6:31
sitebuilderMichael Dunn26-Dec-03 6:31 
GeneralRe: Make Static Text (CEdit) to detect mouse click Pin
J.B.26-Dec-03 17:42
J.B.26-Dec-03 17:42 
GeneralA perl question Pin
The_Server26-Dec-03 2:42
The_Server26-Dec-03 2:42 
GeneralRe: A perl question Pin
Prakash Nadar26-Dec-03 5:52
Prakash Nadar26-Dec-03 5:52 
GeneralUnexpted termination of Service. Pin
Prakash Nadar26-Dec-03 0:57
Prakash Nadar26-Dec-03 0:57 
GeneralCallback function Pin
Shah Shehpori26-Dec-03 0:46
sussShah Shehpori26-Dec-03 0:46 
GeneralRe: Callback function Pin
Gary R. Wheeler26-Dec-03 2:25
Gary R. Wheeler26-Dec-03 2:25 
A callback function is a function you pass to a second function using a function pointer. The second function calls the callback function one or more times to perform some operation.

An example of the second function is the Win32 API function EnumWindows. It has the following prototype:
BOOL EnumWindows(WNDENUMPROC lpEnumFunc,
                 LPARAM lParam);
EnumWindows enumerates all top-level windows on the screen. The first argument, lpEnumFunc, is a pointer to a callback function that you supply. An example is this:
BOOL CALLBACK MyEnumFunc(HWND hwnd,
                         LPARAM lParam)
{
    char text[128];
    ::GetWindowText(hwnd,text,sizeof(text));
    if (!strcmp(text,"Some Window Title")) {
        //...
    }   
}
And you would call EnumWindows as follows:
EnumWindows(MyEnumFunc,0);
Your callback function MyEnumFunc would then be called for every top-level window on the screen.


Software Zen: delete this;
GeneralCObList Pin
Ananya Kaul25-Dec-03 23:43
Ananya Kaul25-Dec-03 23:43 
GeneralRe: CObList Pin
Monty226-Dec-03 23:31
Monty226-Dec-03 23:31 
GeneralMessages problems Pin
Atlence25-Dec-03 22:20
Atlence25-Dec-03 22:20 
GeneralRe: Messages problems Pin
valikac26-Dec-03 5:38
valikac26-Dec-03 5:38 
GeneralRe: Messages problems Pin
Atlence26-Dec-03 14:06
Atlence26-Dec-03 14:06 
Generalabout ScrollBar... Pin
Grrrr25-Dec-03 20:56
Grrrr25-Dec-03 20:56 
GeneralRe: about ScrollBar... Pin
Monty225-Dec-03 21:23
Monty225-Dec-03 21:23 
Questionhow to enumerate Input/Output devices ??? Pin
skpanda25-Dec-03 20:43
skpanda25-Dec-03 20:43 
AnswerRe: how to enumerate Input/Output devices ??? Pin
skpanda26-Dec-03 18:36
skpanda26-Dec-03 18:36 
GeneralRe: how to enumerate Input/Output devices ??? Pin
skpanda26-Dec-03 21:22
skpanda26-Dec-03 21:22 
AnswerRe: how to enumerate Input/Output devices ??? Pin
Monty226-Dec-03 23:35
Monty226-Dec-03 23:35 
GeneralRe: how to enumerate Input/Output devices ??? Pin
skpanda28-Dec-03 18:31
skpanda28-Dec-03 18:31 
GeneralRe: how to enumerate Input/Output devices ??? Pin
Monty228-Dec-03 21:01
Monty228-Dec-03 21:01 
GeneralRe: how to enumerate Input/Output devices ??? Pin
skpanda1-Jan-04 23:08
skpanda1-Jan-04 23:08 
QuestionHow to get all desktop icons? Pin
ioat25-Dec-03 19:16
ioat25-Dec-03 19:16 
GeneralRegarding drw_dxf.h Pin
cithu25-Dec-03 18:22
cithu25-Dec-03 18:22 
Questionhow to write and save ini files like some apps do with their ini's Pin
ELY M.25-Dec-03 18:04
ELY M.25-Dec-03 18:04 

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.