Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDynamic loading Kernel32.dll for backwards compatibility? Pin
Nathan Brown24-Jan-03 12:53
Nathan Brown24-Jan-03 12:53 
AnswerRe: Dynamic loading Kernel32.dll for backwards compatibility? Pin
Tim Smith24-Jan-03 15:35
Tim Smith24-Jan-03 15:35 
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 
This is a confusing issue for me.Frown | :( I think its very relevant to note that this is a dynamically created combobox in a CtoolBar derived class..

I am dynamically doing a Create() to make a combobox in a toolbar. I want to trigger a certain function when I dblclick on a list item of the combobox. How do I set this up? What all do I need to add to my code and where? I gave the toolbar spaceholder button an Id of ID_COMBO1 where its supposed to put in the combobox. In the Class wizard this ID has the COMMAND available but the OnCommand function it made doesnt tell me which item in the list I clicked> Actually what exactly is the COMMAND thing here? In a button when you press it , the commnad handler runs. WHen does the commnad handler run for a combobox? I also guess that you can trap the CBN_DBLCLK message but dont know how to do that. If I can run a handler when this message is trapped, the function that runs can check on the index of the item clicked and do something specifically index-related. SO the index must be passed into the handler. Which class will trap this message and how do I do it in code? In the class wizard I didnt see CBN_DBLCLK. (I am sorry I might be looking in the wrong places...Confused | :confused: Unsure | :~ )

In one sample I saw they had : BOOL CToolBarWithCombo::OnCommand(WPARAM wParam, LPARAM lParam) for a toolbar derived from CToolbar. I dont see how to add this function through the class wizard. iN the code it says:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CToolBarWithCombo)
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL


so its been done through CW. But how? Theres no ID_TOOLBAR that I can create a Command handler for...

How do you add a COMMAND handler for a toolbar and after d oing so, how do you set it up to tell you that item number n in the list (ot text "abc" in the list) was pressed in the combobox?

My goal is to make a specific function run when i press an item in the list of my combobox, which is created dynamically, and embedded in a CTOolBAr class.

Appreciate your help,
ns
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 
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 

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.