Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: exporting derived CStatic class from DLL Pin
Laxman Auti16-Jun-06 23:02
Laxman Auti16-Jun-06 23:02 
GeneralRe: exporting derived CStatic class from DLL Pin
Tobias7518-Jun-06 19:27
Tobias7518-Jun-06 19:27 
QuestionHow to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 1:51
dataminers16-Jun-06 1:51 
AnswerRe: How to Create Label Array on the Run-Time Pin
Cedric Moonen16-Jun-06 1:59
Cedric Moonen16-Jun-06 1:59 
AnswerRe: How to Create Label Array on the Run-Time [modified] Pin
_AnsHUMAN_ 16-Jun-06 2:00
_AnsHUMAN_ 16-Jun-06 2:00 
QuestionRe: How to Create Label Array on the Run-Time Pin
David Crow16-Jun-06 2:43
David Crow16-Jun-06 2:43 
AnswerRe: How to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 4:01
dataminers16-Jun-06 4:01 
AnswerRe: How to Create Label Array on the Run-Time Pin
Viorel.16-Jun-06 2:06
Viorel.16-Jun-06 2:06 
This sample create an array of 10 labels:

// In your dialog class (*.h file):
CArray< CStatic * > mArrayOfLabels;
// In your dialog OnInitDialog handler (*.cpp file):
for( int i = 0; i < 10; ++i)
{
	CStatic * label = new CStatic();
	label->Create("Label", WS_VISIBLE, CRect(CPoint(0, i * 32), CSize(100, 32)), this, IDC_STATIC);
	mArrayOfLabels.Add(label);
}
// TODO: avoid memory leak

GeneralRe: How to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 2:32
dataminers16-Jun-06 2:32 
GeneralRe: How to Create Label Array on the Run-Time [modified] Pin
Viorel.16-Jun-06 2:35
Viorel.16-Jun-06 2:35 
GeneralRe: How to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 5:24
dataminers16-Jun-06 5:24 
Questionwhy ? [modified] Pin
stupidmistakez16-Jun-06 1:11
stupidmistakez16-Jun-06 1:11 
AnswerRe: why ? Pin
_AnsHUMAN_ 16-Jun-06 1:14
_AnsHUMAN_ 16-Jun-06 1:14 
GeneralRe: why ? Pin
stupidmistakez16-Jun-06 1:21
stupidmistakez16-Jun-06 1:21 
GeneralRe: why ? Pin
kakan16-Jun-06 1:27
professionalkakan16-Jun-06 1:27 
GeneralRe: why ? Pin
stupidmistakez16-Jun-06 1:29
stupidmistakez16-Jun-06 1:29 
GeneralRe: why ? Pin
kakan16-Jun-06 1:40
professionalkakan16-Jun-06 1:40 
GeneralRe: why ? Pin
Ganesh_T16-Jun-06 1:47
Ganesh_T16-Jun-06 1:47 
AnswerRe: why ? Pin
Laxman Auti16-Jun-06 1:48
Laxman Auti16-Jun-06 1:48 
GeneralRe: why ? Pin
kakan16-Jun-06 2:01
professionalkakan16-Jun-06 2:01 
JokeRe: why ? Pin
Laxman Auti16-Jun-06 2:25
Laxman Auti16-Jun-06 2:25 
GeneralRe: why ? Pin
kakan16-Jun-06 2:44
professionalkakan16-Jun-06 2:44 
GeneralRe: why ? Pin
Viorel.16-Jun-06 1:54
Viorel.16-Jun-06 1:54 
GeneralRe: why ? Pin
_AnsHUMAN_ 16-Jun-06 1:49
_AnsHUMAN_ 16-Jun-06 1:49 
Questionhow to open a dialog box from another dialog box so that both can be activated Pin
usman_07016-Jun-06 0:45
usman_07016-Jun-06 0:45 

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.