Click here to Skip to main content
15,919,340 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Statically linking the MFC Pin
25-Apr-01 8:30
suss25-Apr-01 8:30 
GeneralRe: Statically linking the MFC Pin
Chris Meech25-Apr-01 8:38
Chris Meech25-Apr-01 8:38 
GeneralRe: Statically linking the MFC Pin
25-Apr-01 10:32
suss25-Apr-01 10:32 
GeneralRe: Statically linking the MFC Pin
Wayne Fuller25-Apr-01 9:14
Wayne Fuller25-Apr-01 9:14 
GeneralRe: Statically linking the MFC Pin
25-Apr-01 10:34
suss25-Apr-01 10:34 
GeneralWinAPI functions Pin
25-Apr-01 7:49
suss25-Apr-01 7:49 
GeneralRe: WinAPI functions Pin
25-Apr-01 8:02
suss25-Apr-01 8:02 
GeneralRe: WinAPI functions Pin
Wayne Fuller25-Apr-01 8:12
Wayne Fuller25-Apr-01 8:12 
There are many books dealing with this subject. Probably the best is "Programmin Windows" by Charles Peltzoid ( spelling might be wrong on last name ).

In WinAPI programming, windows talk to each other via the SendMessage or PostMessage functions. So what MFC does is just wrap this call in a class function.

--------------------------------------------------------------------------
In MFC:

extern CListBox lb;

lb.AddString( _T("Some String") );
--------------------------------------------------------------------------
In WinAPI

extern HWND hwndLB;

SendMessage( hwndLB, LB_ADDSTRING, 0, _T("Some String") );
--------------------------------------------------------------------------


Both code excerpts do the same thing.

Hope that helps.

Wayne
GeneralRe: WinAPI functions Pin
Hadi Rezaee25-Apr-01 8:34
Hadi Rezaee25-Apr-01 8:34 
GeneralInserting data into an existing file... Pin
CMFC6.0VS.NETUser25-Apr-01 7:45
CMFC6.0VS.NETUser25-Apr-01 7:45 
GeneralRe: Inserting data into an existing file... Pin
Wayne Fuller25-Apr-01 8:04
Wayne Fuller25-Apr-01 8:04 
GeneralRe: Inserting data into an existing file... Pin
CMFC6.0VS.NETUser26-Apr-01 5:15
CMFC6.0VS.NETUser26-Apr-01 5:15 
QuestionHow to add a char to standard widows clock (in TaskTray)? Pin
25-Apr-01 5:49
suss25-Apr-01 5:49 
GeneralUpdate menu ... Pin
Hadi Rezaee25-Apr-01 5:40
Hadi Rezaee25-Apr-01 5:40 
GeneralRe: Update menu ... Pin
Hadi Rezaee25-Apr-01 7:50
Hadi Rezaee25-Apr-01 7:50 
GeneralChange width of a tab in a propertypage Pin
25-Apr-01 5:06
suss25-Apr-01 5:06 
QuestionWhich function throws exception? Pin
25-Apr-01 2:06
suss25-Apr-01 2:06 
AnswerRe: Which function throws exception? Pin
Chris Meech25-Apr-01 8:30
Chris Meech25-Apr-01 8:30 
QuestionHow to create a gray back ground upon Application start up Pin
hearties24-Apr-01 23:59
hearties24-Apr-01 23:59 
AnswerRe: How to create a gray back ground upon Application start up Pin
Michael Dunn25-Apr-01 7:38
sitebuilderMichael Dunn25-Apr-01 7:38 
AnswerRe: How to create a gray back ground upon Application start up Pin
Erik Thompson25-Apr-01 7:38
sitebuilderErik Thompson25-Apr-01 7:38 
QuestionSave RichEdit data to file ? Pin
Hadi Rezaee24-Apr-01 16:35
Hadi Rezaee24-Apr-01 16:35 
General3D to 2D Transformation Pin
MikeG24-Apr-01 15:14
MikeG24-Apr-01 15:14 
GeneralPlease Help, How do I Edit a Cell in CListCtrl Pin
24-Apr-01 12:32
suss24-Apr-01 12:32 
GeneralMy dialog box is too big when I ...... Pin
Richard Cheng24-Apr-01 8:07
Richard Cheng24-Apr-01 8: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.