Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Testing the skill of mfc programming Pin
Antony M Kancidrowski11-Jan-05 1:54
Antony M Kancidrowski11-Jan-05 1:54 
GeneralRe: Testing the skill of mfc programming Pin
David Crow11-Jan-05 6:33
David Crow11-Jan-05 6:33 
GeneralData Report Pin
shiraztk10-Jan-05 23:05
shiraztk10-Jan-05 23:05 
GeneralRe: Data Report Pin
Antony M Kancidrowski11-Jan-05 1:47
Antony M Kancidrowski11-Jan-05 1:47 
GeneralArray of Buttons Pin
picander7710-Jan-05 22:50
picander7710-Jan-05 22:50 
GeneralRe: Array of Buttons Pin
KaЯl10-Jan-05 23:28
KaЯl10-Jan-05 23:28 
GeneralRe: Array of Buttons Pin
Cedric Moonen10-Jan-05 23:49
Cedric Moonen10-Jan-05 23:49 
GeneralRe: Array of Buttons Pin
Sohail_CSC11-Jan-05 0:56
Sohail_CSC11-Jan-05 0:56 
Hi Picander,
You forgot to attatch your code, and you didn't mention which compiler your are using VC6.0 or DOT net. Well I gave a try to do the same stuff you have tried, with MCF in VC6.0. You might take a look to it.

//---------------------------------------------------
char *strCaption[3]= {"Button A","Button B","Button C"};
char buffer[20];

int butt_width = 90,
butt_height = 30,
butt_pad = 10;


CButton *myButton = new CButton[3];

// Create a push button.
for(int i=1 ; i <= 3 ; i++)
{
myButton[i-1].Create(strCaption[i-1], WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, CRect(10, 10 + butt_height * (i-1), 100, butt_height*i), this, 1);
//add code to populate variables
}
//--------------------------------------------------------

Good Day
Sohail
GeneralRe: Array of Buttons Pin
picander7711-Jan-05 3:49
picander7711-Jan-05 3:49 
GeneralRe: Array of Buttons Pin
Maximilien11-Jan-05 2:38
Maximilien11-Jan-05 2:38 
GeneralRe: Array of Buttons Pin
picander7711-Jan-05 4:09
picander7711-Jan-05 4:09 
GeneralRe: Array of Buttons SOLUTION Pin
picander7711-Jan-05 4:10
picander7711-Jan-05 4:10 
Generalrtf help Pin
Mohammad Daba'an10-Jan-05 22:22
Mohammad Daba'an10-Jan-05 22:22 
Generalread data from line in Pin
gecool10-Jan-05 22:21
gecool10-Jan-05 22:21 
GeneralRe: read data from line in Pin
KaЯl10-Jan-05 23:20
KaЯl10-Jan-05 23:20 
Generalincrease the max length of SETWINDOWTEXT Pin
Member 147966910-Jan-05 21:43
Member 147966910-Jan-05 21:43 
GeneralRe: increase the max length of SETWINDOWTEXT Pin
Roger Allen10-Jan-05 23:19
Roger Allen10-Jan-05 23:19 
GeneralCRectTracker and scrolling problems Pin
Maverick10-Jan-05 21:38
Maverick10-Jan-05 21:38 
GeneralFIFO thread synchronizing Pin
Menny Even Danan10-Jan-05 20:53
Menny Even Danan10-Jan-05 20:53 
GeneralRe: FIFO thread synchronizing Pin
Blake Miller11-Jan-05 4:03
Blake Miller11-Jan-05 4:03 
GeneralRe: FIFO thread synchronizing Pin
Menny Even Danan11-Jan-05 21:39
Menny Even Danan11-Jan-05 21:39 
GeneralRe: FIFO thread synchronizing Pin
Blake Miller12-Jan-05 5:00
Blake Miller12-Jan-05 5:00 
GeneralRe: FIFO thread synchronizing Pin
Menny Even Danan12-Jan-05 0:52
Menny Even Danan12-Jan-05 0:52 
GeneralFile Directory Table Pin
LiYS10-Jan-05 20:20
LiYS10-Jan-05 20:20 
GeneralRe: File Directory Table Pin
David Crow11-Jan-05 6:42
David Crow11-Jan-05 6:42 

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.