Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamic loading Kernel32.dll for backwards compatibility? Pin
Nathan Brown24-Jan-03 18:36
Nathan Brown24-Jan-03 18:36 
GeneralRe: Dynamic loading Kernel32.dll for backwards compatibility? Pin
Michael Dunn24-Jan-03 20:33
sitebuilderMichael Dunn24-Jan-03 20:33 
GeneralRe: Dynamic loading Kernel32.dll for backwards compatibility? Pin
Nathan Brown27-Jan-03 17:03
Nathan Brown27-Jan-03 17:03 
Generalmapfile&release&DLL Pin
georgi_tg24-Jan-03 12:09
georgi_tg24-Jan-03 12:09 
QuestionCListCtrl read-only but enabled? Pin
berndg24-Jan-03 12:04
berndg24-Jan-03 12:04 
GeneralCBN_DBLCLICK - severe confusion. Please help!!!!! Pin
ns24-Jan-03 11:09
ns24-Jan-03 11:09 
GeneralRe: CBN_DBLCLICK - severe confusion. Please help!!!!! Pin
PJ Arends24-Jan-03 12:31
professionalPJ Arends24-Jan-03 12:31 
GeneralThat helped!. One final question Pin
nss24-Jan-03 13:47
nss24-Jan-03 13:47 
So I still dont know which item in the list was clicked that issued this message.

(Oh! I think I can get it from the GetCurSel of the control once I confirm it was the combo box that was clicked..:-O)
THere is no parameter that sends in the index or text of the clicked item.....unless I missed something which I desperately hope I didnt.....Cry | :(( (I KNOW I have to learn a lot more)

Thank you for explaining. FRom the MSDN when I typed in WM_COMMAND: they have a callback which goes as:

LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
WM_COMMAND, // the message to send
WPARAM wParam, // notification code and identifier
LPARAM lParam // handle to control (HWND)
);

and I havent made the connection between OnCommand and this windowProc. I dont really know what happens in the background so even though I am using MFC, apparently callback stuff is still operational (I feel like I am making a really stupid statement here!). Also most of the time I've seen ONCommand() like the one the classwizard creates when you press a button, doesnt have any parameters. I did note that the mainframe OnCommmand has parameters wParam, lParam which somehow you have deduced is related to the wParam lParam from the callback.

Also , how did the sample code from CP have a classwizard created handler for a toolbar OnCommand? THeres no ID_TOOLBAR, though theres a mainframe class, and a ID_COMBOBOX. Both the latter two allow me to add the COMMAND handler via the CW. But how to add a command handler for a CToolBar using the CW? That has the same prototype with lParam and wPAram...

I saw this in a CP article on comboboxes in toolbars.
Thank you again.
GeneralRe: That helped!. One final question Pin
PJ Arends24-Jan-03 15:07
professionalPJ Arends24-Jan-03 15:07 
GeneralRe: That helped!. One final question Pin
nss25-Jan-03 4:47
nss25-Jan-03 4:47 
GeneralGetting a combobox to do some stuff Pin
ns24-Jan-03 10:34
ns24-Jan-03 10:34 
GeneralRe: Getting a combobox to do some stuff Pin
Stefan Pedersen24-Jan-03 12:47
Stefan Pedersen24-Jan-03 12:47 
GeneralRe: Getting a combobox to do some stuff Pin
georgiek5024-Jan-03 17:03
georgiek5024-Jan-03 17:03 
GeneralWindows stops drawing my subclassed controls Pin
jimNLX24-Jan-03 10:28
jimNLX24-Jan-03 10:28 
GeneralRe: Windows stops drawing my subclassed controls Pin
Neville Franks24-Jan-03 10:49
Neville Franks24-Jan-03 10:49 
GeneralRe: Windows stops drawing my subclassed controls Pin
jimNLX24-Jan-03 11:51
jimNLX24-Jan-03 11:51 
GeneralRe: Windows stops drawing my subclassed controls Pin
Neville Franks24-Jan-03 12:31
Neville Franks24-Jan-03 12:31 
GeneralRe: Windows stops drawing my subclassed controls Pin
Gary R. Wheeler25-Jan-03 3:09
Gary R. Wheeler25-Jan-03 3:09 
GeneralRe: Windows stops drawing my subclassed controls Pin
jimNLX25-Jan-03 12:32
jimNLX25-Jan-03 12:32 
GeneralRe: Windows stops drawing my subclassed controls Pin
Gary R. Wheeler26-Jan-03 1:25
Gary R. Wheeler26-Jan-03 1:25 
GeneralRe: Windows stops drawing my subclassed controls Pin
Barbara Shafer24-Feb-03 9:11
Barbara Shafer24-Feb-03 9:11 
Generaltcslen Pin
ns24-Jan-03 10:03
ns24-Jan-03 10:03 
GeneralRe: tcslen Pin
Roger Allen24-Jan-03 10:05
Roger Allen24-Jan-03 10:05 
GeneralThank you! Pin
ns24-Jan-03 10:11
ns24-Jan-03 10:11 
General_T as well... Pin
ns24-Jan-03 10:15
ns24-Jan-03 10:15 

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.