Click here to Skip to main content
15,921,279 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Opening a Dialog from the menu Pin
HalfWayMan17-Sep-03 5:12
HalfWayMan17-Sep-03 5:12 
GeneralRe: Opening a Dialog from the menu Pin
Tom Wright17-Sep-03 5:36
Tom Wright17-Sep-03 5:36 
GeneralRe: Opening a Dialog from the menu Pin
David Crow17-Sep-03 5:37
David Crow17-Sep-03 5:37 
GeneralCComboBox Pin
mstanciu200017-Sep-03 2:52
mstanciu200017-Sep-03 2:52 
GeneralRe: CComboBox Pin
David Crow17-Sep-03 3:19
David Crow17-Sep-03 3:19 
GeneralRe: CComboBox Pin
mstanciu200017-Sep-03 20:20
mstanciu200017-Sep-03 20:20 
GeneralRe: CComboBox Pin
Steve S18-Sep-03 1:55
Steve S18-Sep-03 1:55 
GeneralRe: CComboBox Pin
Yonatan10-Nov-03 1:54
Yonatan10-Nov-03 1:54 
Hi,
in case this is still relevant:
i encountered the same problem and wish to trade my solution in return to your advice;).
to control the edit box height, i simply changed the combobox font size. e.g. (12==font height in points):
<code>CFont font;
LOGFONT lf;
font.CreateFont(12, 0, 0, 0, FW_NORMAL, FALSE,
FALSE, 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,
DEFAULT_PITCH | FF_SWISS, "Arial");
font.GetLogFont(&lf);
m_newFont.CreateFontIndirect(&lf);

m_ccombobox.Create(WS_CHILD | WS_VSCROLL |CBS_DROPDOWN
, rect, this, 0);
m_ccombobox.SetFont(&m_newFont); </code>

and now for my question: how do you get the size the rectangle wrapping the edit box + the arrow box?
thank you.
<small><b>mstanciu2000 wrote:</b></small>
<i>I need a combo with the edit control very small (hight very small). </i>



-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Email: y_becker@netvision.net.il
GeneralRe: CComboBox Pin
Anonymous10-Nov-03 2:26
Anonymous10-Nov-03 2:26 
GeneralRe: CComboBox Pin
Yonatan10-Nov-03 2:59
Yonatan10-Nov-03 2:59 
Questionhow to display access database into dialog? Pin
coda_x17-Sep-03 2:13
coda_x17-Sep-03 2:13 
AnswerRe: how to display access database into dialog? Pin
David Crow17-Sep-03 2:39
David Crow17-Sep-03 2:39 
GeneralRe: how to display access database into dialog? Pin
coda_x17-Sep-03 3:22
coda_x17-Sep-03 3:22 
GeneralRe: how to display access database into dialog? Pin
David Crow17-Sep-03 3:32
David Crow17-Sep-03 3:32 
GeneralRe: how to display access database into dialog? Pin
coda_x17-Sep-03 3:33
coda_x17-Sep-03 3:33 
GeneralRe: how to display access database into dialog? Pin
David Crow17-Sep-03 5:32
David Crow17-Sep-03 5:32 
GeneralChanging Version Info in EXE Files Pin
Steve Thresher17-Sep-03 1:58
Steve Thresher17-Sep-03 1:58 
GeneralRe: Changing Version Info in EXE Files Pin
Jagadeesh VN17-Sep-03 2:12
Jagadeesh VN17-Sep-03 2:12 
GeneralRe: Changing Version Info in EXE Files Pin
Steve Thresher17-Sep-03 2:56
Steve Thresher17-Sep-03 2:56 
GeneralRe: Changing Version Info in EXE Files Pin
Jagadeesh VN17-Sep-03 3:04
Jagadeesh VN17-Sep-03 3:04 
GeneralRe: Changing Version Info in EXE Files Pin
Steve Thresher17-Sep-03 4:40
Steve Thresher17-Sep-03 4:40 
GeneralRe: Changing Version Info in EXE Files Pin
FearlessBurner17-Sep-03 3:46
FearlessBurner17-Sep-03 3:46 
GeneralDelete a complete folder Pin
peterchen17-Sep-03 1:50
peterchen17-Sep-03 1:50 
GeneralRe: Delete a complete folder Pin
Jagadeesh VN17-Sep-03 2:37
Jagadeesh VN17-Sep-03 2:37 
GeneralRe: Delete a complete folder Pin
David Crow17-Sep-03 2:41
David Crow17-Sep-03 2:41 

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.