Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Setting Font size in CEdit control Pin
Hamid_RT18-Dec-06 17:53
Hamid_RT18-Dec-06 17:53 
QuestionScolling for a CFormView Pin
DanYELL18-Dec-06 5:10
DanYELL18-Dec-06 5:10 
QuestionStatic declaration behaviour within MFC dialog Pin
Like2Byte18-Dec-06 5:02
Like2Byte18-Dec-06 5:02 
AnswerRe: Static declaration behaviour within MFC dialog Pin
Like2Byte18-Dec-06 5:49
Like2Byte18-Dec-06 5:49 
AnswerRe: Static declaration behaviour within MFC dialog Pin
Chris Losinger18-Dec-06 5:51
professionalChris Losinger18-Dec-06 5:51 
Generalcreating wrapper Pin
V.18-Dec-06 4:39
professionalV.18-Dec-06 4:39 
GeneralRe: creating wrapper Pin
Chris Losinger18-Dec-06 4:49
professionalChris Losinger18-Dec-06 4:49 
QuestionCComboBox height Pin
Demian Panello18-Dec-06 2:45
Demian Panello18-Dec-06 2:45 
Hi.

I'm writing an application that it create a CComboBox at runtime like this:

<br />
rcControl.left = long(rcClient.Width()  * 0.05);<br />
rcControl.top = long(rcClient.Height()  * 0.10);<br />
rcControl.right  = rcControl.left + long(rcClient.Width()  * 0.90) ;<br />
rcControl.bottom = rcControl.top +long(rcClient.Height() * 0.40);	  <br />
<br />
m_cboParam.Create(CBS_DROPDOWNLIST|LBS_STANDARD|CBS_SORT|WS_CHILD|WS_VISIBLE, rcControl, this, IDC_PARAM);<br />
....<br />


It works, but the problem is that I want to show more items when the user pull the list down. At the moment it shows just two items and I must scroll the list down to see the rest of them.
How could I set, maybe the heigth or something else, so it will be able to show more than two items.?? (at least 4 or 5).

Setting the amount of items to show in a combobox at design time is easy:->, just clicking over the arrow and then stretch it to the desire height. But how could I set that at runtime??D'Oh! | :doh:

Thank you.


Demian.

"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."

-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )

AnswerRe: CComboBox height Pin
Demian Panello18-Dec-06 4:18
Demian Panello18-Dec-06 4:18 
AnswerRe: CComboBox height Pin
prasad_som18-Dec-06 4:25
prasad_som18-Dec-06 4:25 
QuestionLinking Error ? Pin
Sakthiu18-Dec-06 1:24
Sakthiu18-Dec-06 1:24 
QuestionHorizontal scroll in CEdit veiw Pin
Max++18-Dec-06 0:35
Max++18-Dec-06 0:35 
Questionhi all got a doubt Pin
chethu66518-Dec-06 0:16
chethu66518-Dec-06 0:16 
QuestionHow a 16 bit compiler TurboC is running in 32 bit OS(Windows)? Pin
G Haranadh17-Dec-06 23:59
G Haranadh17-Dec-06 23:59 
AnswerRe: How a 16 bit compiler TurboC is running in 32 bit OS(Windows)? Pin
toxcct18-Dec-06 1:01
toxcct18-Dec-06 1:01 
GeneralRe: How a 16 bit compiler TurboC is running in 32 bit OS(Windows)? Pin
G Haranadh18-Dec-06 1:15
G Haranadh18-Dec-06 1:15 
AnswerRe: How a 16 bit compiler TurboC is running in 32 bit OS(Windows)? Pin
kakan18-Dec-06 1:28
professionalkakan18-Dec-06 1:28 
GeneralRe: How a 16 bit compiler TurboC is running in 32 bit OS(Windows)? Pin
Rajesh R Subramanian18-Dec-06 2:07
professionalRajesh R Subramanian18-Dec-06 2:07 
GeneralRe: How a 16 bit compiler TurboC is running in 32 bit OS(Windows)? Pin
G Haranadh18-Dec-06 4:42
G Haranadh18-Dec-06 4:42 
QuestionRetrieving the Column names Pin
Taruni17-Dec-06 23:56
Taruni17-Dec-06 23:56 
AnswerRe: Retrieving the Column names Pin
Hamid_RT18-Dec-06 0:17
Hamid_RT18-Dec-06 0:17 
Questionmodeless dialog box creation Pin
minkowski17-Dec-06 23:55
minkowski17-Dec-06 23:55 
AnswerRe: modeless dialog box creation Pin
prasad_som18-Dec-06 0:09
prasad_som18-Dec-06 0:09 
AnswerRe: modeless dialog box creation Pin
ashokbngr18-Dec-06 0:13
ashokbngr18-Dec-06 0:13 
GeneralRe: modeless dialog box creation [modified] Pin
minkowski18-Dec-06 0:30
minkowski18-Dec-06 0:30 

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.