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

C / C++ / MFC

 
GeneralRe: Terminating Process Pin
David Crow26-Jul-04 3:46
David Crow26-Jul-04 3:46 
GeneralRe: Terminating Process Pin
GTS202026-Jul-04 5:20
GTS202026-Jul-04 5:20 
GeneralRe: Terminating Process Pin
David Crow26-Jul-04 8:30
David Crow26-Jul-04 8:30 
GeneralGetting the HACCEL handle... Pin
0v3rloader26-Jul-04 2:03
0v3rloader26-Jul-04 2:03 
GeneralRe: Getting the HACCEL handle... Pin
Antony M Kancidrowski26-Jul-04 2:19
Antony M Kancidrowski26-Jul-04 2:19 
GeneralCString Problems Pin
#realJSOP26-Jul-04 0:54
mve#realJSOP26-Jul-04 0:54 
GeneralRe: CString Problems Pin
palbano26-Jul-04 7:33
palbano26-Jul-04 7:33 
Questionno copy constructor? Pin
feline_dracoform26-Jul-04 0:09
feline_dracoform26-Jul-04 0:09 
AnswerRe: no copy constructor? Pin
David Crow26-Jul-04 3:53
David Crow26-Jul-04 3:53 
GeneralRe: no copy constructor? Pin
feline_dracoform27-Jul-04 2:02
feline_dracoform27-Jul-04 2:02 
GeneralRe: no copy constructor? Pin
David Crow27-Jul-04 3:39
David Crow27-Jul-04 3:39 
AnswerRe: no copy constructor? Pin
palbano26-Jul-04 7:53
palbano26-Jul-04 7:53 
GeneralRe: no copy constructor? Pin
feline_dracoform27-Jul-04 1:12
feline_dracoform27-Jul-04 1:12 
Generaldisable a submenu item on runtime in an MFC app Pin
caykahve25-Jul-04 23:35
caykahve25-Jul-04 23:35 
GeneralRe: disable a submenu item on runtime in an MFC app Pin
Anonymous25-Jul-04 23:45
Anonymous25-Jul-04 23:45 
GeneralRe: disable a submenu item on runtime in an MFC app Pin
caykahve25-Jul-04 23:52
caykahve25-Jul-04 23:52 
GeneralRe: disable a submenu item on runtime in an MFC app Pin
V.25-Jul-04 23:47
professionalV.25-Jul-04 23:47 
GeneralRe: disable a submenu item on runtime in an MFC app Pin
caykahve26-Jul-04 0:24
caykahve26-Jul-04 0:24 
Generalmultiple text in status-bar Pin
Anonymous25-Jul-04 23:21
Anonymous25-Jul-04 23:21 
GeneralPosition the mouse on a web browser programmatically Pin
yourbuddy7725-Jul-04 21:22
yourbuddy7725-Jul-04 21:22 
Generalline comparison on word basis Pin
mfc_surfer25-Jul-04 20:46
mfc_surfer25-Jul-04 20:46 
Questiondynamically create controls and attaching listeners to them? Pin
misterbear25-Jul-04 20:23
misterbear25-Jul-04 20:23 
AnswerRe: dynamically create controls and attaching listeners to them? Pin
KarstenK25-Jul-04 21:14
mveKarstenK25-Jul-04 21:14 
GeneralBut how to attach a message handler dynamically? Pin
misterbear26-Jul-04 0:04
misterbear26-Jul-04 0:04 
Questiondynamically create controls and attaching listeners to them? Pin
misterbear25-Jul-04 20:23
misterbear25-Jul-04 20:23 
Hello, I don't know if this is super-easy to accomplish,
I am pretty new to VC++/MFC..

I need to create a dialog which must contain a different number
of CButton controls depending on certain state parameters of the
applications. So I need to dynamically create a number of those
controls and attach a message handler for them ( they all share
the same message handler code ).

How do I attach this listener function to the controls once
I've created them?
(I destroy all buttons and create a bunch of new ones when the layout changes)

thankful for any help.

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.