Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get a pixel's RGB value. Pin
ThatsAlok15-Mar-05 18:18
ThatsAlok15-Mar-05 18:18 
GeneralRe: How to get a pixel's RGB value. Pin
Francis Chau15-Mar-05 18:41
Francis Chau15-Mar-05 18:41 
GeneralRe: How to get a pixel's RGB value. Pin
FlyingTinman21-Mar-05 7:38
FlyingTinman21-Mar-05 7:38 
Generalcreate a dicom file Pin
thangnvhl15-Mar-05 13:58
thangnvhl15-Mar-05 13:58 
GeneralRe: create a dicom file Pin
Christian Graus15-Mar-05 14:13
protectorChristian Graus15-Mar-05 14:13 
GeneralRe: create a dicom file Pin
thangnvhl15-Mar-05 14:21
thangnvhl15-Mar-05 14:21 
GeneralRe: create a dicom file Pin
Christian Graus15-Mar-05 14:59
protectorChristian Graus15-Mar-05 14:59 
QuestionHow to catch event for dynamic Controls Pin
i2c15-Mar-05 13:51
i2c15-Mar-05 13:51 
Hi, i am a newbie, and i am trying to implement a control array as its called in VB, in VC. I have put the following code in a dialog's OnInitDialog() method:

pButton[0] = new CButton;
pButton[0]->Create(_T("My button1"), WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, CRect(10,10,100,30), this, 1);
pButton[0]->ShowWindow(SW_SHOW);

pButton[1] = new CButton;
pButton[1]->Create(_T("My button2"), WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, CRect(110,10,200,30), this, 2);
pButton[1]->ShowWindow(SW_SHOW);

But i dont know how to catch their events. Actually, i want to create a dialog which on the basis of a number creates that many buttons. I can read the text of that button and know which button it is. but first i have to catch the event. Please if any of u have any alternatives to this do tell me.
and which library do u prefere for such tasks MFC, ATL or ... (i m not sure about).



To hit 3rd floors window you have to AIM for 5th or Higher.
AnswerRe: How to catch event for dynamic Controls Pin
Max Santos15-Mar-05 14:17
Max Santos15-Mar-05 14:17 
GeneralRe: How to catch event for dynamic Controls Pin
i2c15-Mar-05 14:37
i2c15-Mar-05 14:37 
GeneralRe: How to catch event for dynamic Controls Pin
Maximilien15-Mar-05 15:02
Maximilien15-Mar-05 15:02 
GeneralRe: How to catch event for dynamic Controls Pin
Max Santos16-Mar-05 0:11
Max Santos16-Mar-05 0:11 
AnswerRe: How to catch event for dynamic Controls Pin
namaskaaram15-Mar-05 18:43
namaskaaram15-Mar-05 18:43 
AnswerRe: How to catch event for dynamic Controls Pin
Cedric Moonen15-Mar-05 20:23
Cedric Moonen15-Mar-05 20:23 
GeneralRe: How to catch event for dynamic Controls Pin
i2c17-Mar-05 4:24
i2c17-Mar-05 4:24 
GeneralAuto-fill style listctrl question Pin
djtommye15-Mar-05 13:35
djtommye15-Mar-05 13:35 
GeneralAdding mfc variable .. Pin
vchedalla15-Mar-05 13:05
vchedalla15-Mar-05 13:05 
GeneralRe: Adding mfc variable .. Pin
Christian Graus15-Mar-05 13:30
protectorChristian Graus15-Mar-05 13:30 
GeneralRe: Adding mfc variable .. Pin
vchedalla15-Mar-05 13:54
vchedalla15-Mar-05 13:54 
GeneralRe: Adding mfc variable .. Pin
Christian Graus15-Mar-05 14:04
protectorChristian Graus15-Mar-05 14:04 
GeneralRe: Adding mfc variable .. Pin
vchedalla15-Mar-05 18:24
vchedalla15-Mar-05 18:24 
GeneralRe: Adding mfc variable .. Pin
Christian Graus16-Mar-05 12:20
protectorChristian Graus16-Mar-05 12:20 
QuestionWhy do my icons look like crap on NT? Pin
Ian Bowler15-Mar-05 13:02
Ian Bowler15-Mar-05 13:02 
AnswerRe: Why do my icons look like crap on NT? Pin
Steve Mayfield15-Mar-05 13:39
Steve Mayfield15-Mar-05 13:39 
GeneralRe: Why do my icons look like crap on NT? Pin
Ian Bowler15-Mar-05 13:44
Ian Bowler15-Mar-05 13:44 

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.