Click here to Skip to main content
15,898,640 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to use ACROBAT PDF ActiveX component in a Dialog.exe application? Pin
31-Jul-01 18:50
suss31-Jul-01 18:50 
AnswerRe: How to use ACROBAT PDF ActiveX component in a Dialog.exe application? Pin
Christian Graus2-Aug-01 18:19
protectorChristian Graus2-Aug-01 18:19 
GeneralWTL - dynamically creating buttons etc. Pin
Christian Graus31-Jul-01 18:03
protectorChristian Graus31-Jul-01 18:03 
GeneralRe: WTL - dynamically creating buttons etc. Pin
Christian Graus31-Jul-01 18:22
protectorChristian Graus31-Jul-01 18:22 
GeneralRe: WTL - dynamically creating buttons etc. Pin
Tommy H D Svensson2-Aug-01 9:35
Tommy H D Svensson2-Aug-01 9:35 
GeneralRe: WTL - dynamically creating buttons etc. Pin
Christian Graus2-Aug-01 11:35
protectorChristian Graus2-Aug-01 11:35 
GeneralRe: WTL - dynamically creating buttons etc. Pin
Michael Dunn31-Jul-01 20:06
sitebuilderMichael Dunn31-Jul-01 20:06 
GeneralRe: WTL - dynamically creating buttons etc. Pin
Christian Graus1-Aug-01 2:59
protectorChristian Graus1-Aug-01 2:59 
Um... not quite. There you (very helpfully) showed me how to hook up buttons and so on into a message map. Now I want to create them dynamically, not by putting them on a dialog template and calling SubclassWindow, but by having a vector of controls to which I can dynamically add them, and have the code able to respond to their being pushed. The idea is that we create a set of classes by which people can script the creation of a dialog box and it's controls, so it needs to be ultra flexible.

I've worked out that I can respond to OnCommand, and the lParam ( from memory, the code is at work and I am not ) is the HWND of the control, but none of the other paramters seen to contain anything meaningful. Is this the way to capture buttons I've created on the fly, and if so, does OnCommand respond to anything but controls being pushed ? Either way, when I have a lot of different elements on the dialog, I'm not sure how I'm going to be able to figure out what was interacted with and how, in order to respond to it meaningfully. The Create method didn't seem to take an ID I could assign, for example, and I'm trying not to think about intercepting messages on a dynamically created listview, for example.

Any suggestions you may have on how to deal with a variable number of controls on a dialog that will not be known until runtime will be greatly appreciated.



Christian

#include "std_disclaimer.h"

The careful application of terror is also a form of communication.

Eagles may soar, but weasels don't get sucked into jet engines.
GeneralRe: WTL - dynamically creating buttons etc. Pin
Michael Dunn1-Aug-01 13:06
sitebuilderMichael Dunn1-Aug-01 13:06 
GeneralRe: WTL - dynamically creating buttons etc. Pin
Christian Graus1-Aug-01 13:09
protectorChristian Graus1-Aug-01 13:09 
GeneralCreate a Setup File Pin
sankar31-Jul-01 16:10
sankar31-Jul-01 16:10 
Generaldynamic_cast and void * Pin
31-Jul-01 11:22
suss31-Jul-01 11:22 
GeneralRe: dynamic_cast and void * Pin
Ben Burnett31-Jul-01 14:07
Ben Burnett31-Jul-01 14:07 
GeneralRe: dynamic_cast and void * Pin
Asif Ahmad31-Jul-01 19:57
Asif Ahmad31-Jul-01 19:57 
GeneralRe: dynamic_cast and void * Pin
Malcolm McMahon31-Jul-01 22:59
Malcolm McMahon31-Jul-01 22:59 
GeneralCCtrlView does not show my items Pin
Wim Jans31-Jul-01 11:05
Wim Jans31-Jul-01 11:05 
GeneralRe: CCtrlView does not show my items Pin
Ben Burnett31-Jul-01 14:24
Ben Burnett31-Jul-01 14:24 
GeneralRe: CCtrlView does not show my items Pin
Wim Jans1-Aug-01 2:12
Wim Jans1-Aug-01 2:12 
GeneralExtracting features from a BMP Pin
Russel Hawkins31-Jul-01 10:57
Russel Hawkins31-Jul-01 10:57 
GeneralRe: Extracting features from a BMP Pin
Chris Losinger31-Jul-01 11:18
professionalChris Losinger31-Jul-01 11:18 
GeneralRe: Extracting features from a BMP Pin
Russel Hawkins31-Jul-01 21:36
Russel Hawkins31-Jul-01 21:36 
GeneralReading int/long lengths from binary file Pin
31-Jul-01 10:08
suss31-Jul-01 10:08 
GeneralRe: Reading int/long lengths from binary file Pin
Paolo Messina31-Jul-01 10:45
professionalPaolo Messina31-Jul-01 10:45 
GeneralIEnumIDList and Next usage Pin
31-Jul-01 9:34
suss31-Jul-01 9:34 
GeneralResizing List Control Columns Pin
Scott Evans31-Jul-01 9:13
Scott Evans31-Jul-01 9:13 

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.