Click here to Skip to main content
15,917,321 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disabling only the menubar/toolbars of the mainframe Pin
Maximilien11-Jan-05 6:05
Maximilien11-Jan-05 6:05 
QuestionI need vc++ project please? Pin
Anas_zet11-Jan-05 4:07
Anas_zet11-Jan-05 4:07 
AnswerRe: I need vc++ project please? Pin
Maximilien11-Jan-05 6:19
Maximilien11-Jan-05 6:19 
GeneralRe: I need vc++ project please? Pin
Anas_zet20-Jan-05 11:38
Anas_zet20-Jan-05 11:38 
GeneralHelp me, I want any VC++ project Pin
Anas_zet11-Jan-05 4:04
Anas_zet11-Jan-05 4:04 
GeneralRe: Help me, I want any VC++ project Pin
pc_dev11-Jan-05 22:01
pc_dev11-Jan-05 22:01 
GeneralRe: Help me, I want any VC++ project Pin
Anonymous20-Jan-05 11:22
Anonymous20-Jan-05 11:22 
GeneralNetwork Share Dlg Pin
Mike Doner11-Jan-05 3:08
Mike Doner11-Jan-05 3:08 
GeneralRe: Network Share Dlg Pin
David Crow11-Jan-05 10:20
David Crow11-Jan-05 10:20 
Generalconverting integer to string Pin
mytz11-Jan-05 2:43
mytz11-Jan-05 2:43 
GeneralRe: converting integer to string Pin
Anonymous11-Jan-05 2:59
Anonymous11-Jan-05 2:59 
GeneralRe: converting integer to string Pin
Iain Clarke, Warrior Programmer11-Jan-05 3:03
Iain Clarke, Warrior Programmer11-Jan-05 3:03 
GeneralRe: converting integer to string Pin
Cedric Moonen11-Jan-05 4:15
Cedric Moonen11-Jan-05 4:15 
GeneralRe: converting integer to string Pin
basementman11-Jan-05 5:43
basementman11-Jan-05 5:43 
GeneralTesting the skill of mfc programming Pin
phijophlip10-Jan-05 23:07
phijophlip10-Jan-05 23:07 
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 

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.