Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trouble reading from a file. Pin
Anonymous3-Jun-03 13:07
Anonymous3-Jun-03 13:07 
QuestionWhat is Callback Function? Pin
Anonymous3-Jun-03 10:43
Anonymous3-Jun-03 10:43 
AnswerRe: What is Callback Function? Pin
act_x3-Jun-03 12:41
act_x3-Jun-03 12:41 
AnswerRe: What is Callback Function? Pin
ucs3-Jun-03 12:43
ucs3-Jun-03 12:43 
QuestionHow to make a dynamic modal dialog. Pin
Wormhole52303-Jun-03 10:02
Wormhole52303-Jun-03 10:02 
AnswerRe: How to make a dynamic modal dialog. Pin
Joan M3-Jun-03 22:44
professionalJoan M3-Jun-03 22:44 
GeneralRe: How to make a dynamic modal dialog. Pin
Wormhole52303-Jun-03 23:00
Wormhole52303-Jun-03 23:00 
GeneralRe: How to make a dynamic modal dialog. Pin
Joan M3-Jun-03 23:17
professionalJoan M3-Jun-03 23:17 
In order to create dynamically a combobox, you should do this:
<br />
CRect r;<br />
<br />
if (this->m_ccbParametritzacio.GetSafeHwnd() == NULL)<br />
{<br />
	this->m_ccbParametritzacio.Create(WS_CHILD | WS_VSCROLL | WS_HSCROLL | CBS_DROPDOWNLIST,																			r,																			this,																			UNIQUE_ID);<br />
<br />
	this->m_ccbParametritzacio.SetFont(this->GetFont());<br />
}


NOTE0:
you should change "this->" for the parent dialog... (this is only supposed I've not tried it)

NOTE1:
there was an article referring on this topic here in CP or in codeguru (I don't remember exactly...)

NOTE2:
I recommend you to use a derived listctrl with buttons, comboboxes, editboxes... in order to do what you are searching for because this control is extendable and if there are lots of controls to be created dynamically you'll be able to go through them using the implemented scrollbars, and moreover you'll avoid to recalculate the place where to put the control and where to put the text referred to the same control...

Hope this helps...
AnswerRe: How to make a dynamic modal dialog. Pin
Wormhole52304-Jun-03 22:35
Wormhole52304-Jun-03 22:35 
QuestionCImage::StretchBlt does not work!? Pin
schaereran@gmx.net3-Jun-03 9:36
schaereran@gmx.net3-Jun-03 9:36 
AnswerRe: CImage::StretchBlt does not work!? Pin
RaajaOfSelf4-Jun-03 19:10
RaajaOfSelf4-Jun-03 19:10 
GeneralRe: CImage::StretchBlt does not work!? Pin
schaereran@gmx.net5-Jun-03 0:36
schaereran@gmx.net5-Jun-03 0:36 
QuestionHow do i create a random number? Pin
Redeemer-dk3-Jun-03 9:36
Redeemer-dk3-Jun-03 9:36 
AnswerRe: How do i create a random number? Pin
Chris Losinger3-Jun-03 9:53
professionalChris Losinger3-Jun-03 9:53 
GeneralRe: How do i create a random number? Pin
Dean Goodman3-Jun-03 11:38
Dean Goodman3-Jun-03 11:38 
AnswerRe: How do i create a random number? Pin
David Crow3-Jun-03 10:21
David Crow3-Jun-03 10:21 
AnswerRe: How do i create a random number? Pin
RedZenBird3-Jun-03 10:49
RedZenBird3-Jun-03 10:49 
AnswerRe: How do i create a random number? Pin
Anders Molin3-Jun-03 12:14
professionalAnders Molin3-Jun-03 12:14 
GeneralEnableMenuItem does not work Pin
Shay Harel3-Jun-03 9:25
Shay Harel3-Jun-03 9:25 
GeneralRe: EnableMenuItem does not work Pin
valikac3-Jun-03 9:34
valikac3-Jun-03 9:34 
GeneralRe: EnableMenuItem does not work Pin
Shay Harel3-Jun-03 9:48
Shay Harel3-Jun-03 9:48 
GeneralRe: EnableMenuItem does not work Pin
Mike Upton4-Jun-03 0:22
Mike Upton4-Jun-03 0:22 
Generalactivex including a dll/lib Pin
Anonymous3-Jun-03 9:10
Anonymous3-Jun-03 9:10 
GeneralEvent like CEvent Pin
act_x3-Jun-03 8:52
act_x3-Jun-03 8:52 
GeneralRe: Event like CEvent Pin
Anonymous3-Jun-03 9:14
Anonymous3-Jun-03 9:14 

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.