Click here to Skip to main content
15,902,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to write DOS-Programs with VC++6 Pin
8-Feb-01 10:54
suss8-Feb-01 10:54 
AnswerRe: How to write DOS-Programs with VC++6 Pin
Andrew Peace8-Feb-01 13:00
Andrew Peace8-Feb-01 13:00 
GeneralUrgent - ComboBox problem Pin
Deian8-Feb-01 1:08
Deian8-Feb-01 1:08 
GeneralRe: Urgent - ComboBox problem Pin
Chris Losinger8-Feb-01 7:52
professionalChris Losinger8-Feb-01 7:52 
GeneralUrgent - ComboBox problem Pin
Deian8-Feb-01 1:08
Deian8-Feb-01 1:08 
GeneralRe: Urgent - ComboBox problem Pin
Le Ridder Noir8-Feb-01 1:51
Le Ridder Noir8-Feb-01 1:51 
GeneralRe: Urgent - ComboBox problem Pin
Le Ridder Noir8-Feb-01 2:00
Le Ridder Noir8-Feb-01 2:00 
GeneralRe: Urgent - ComboBox problem Pin
Le Ridder Noir8-Feb-01 2:00
Le Ridder Noir8-Feb-01 2:00 
Or open the dialog for resource editting, click on the dropdown button and change the size.

If you want to change the list height of the combobox during runtime. Create a new class and let it inherrit from CCombobox, add the message handler:
ON_CONTROL_REFLECT(CBN_DROPDOWN, OnDropdown)

and edit the OndropDown function like this:

void CMyComboBox::OnDropdown()
{
// This limits the maximum number of visible entries to 7
int nLines = min( max(GetCount(), 1), 7 );
CRect lprect;
GetWindowRect( &lprect );

lprect.bottom = lprect.top + nLines * GetItemHeight( -1 ) + lprect.Height();

SetWindowPos(NULL, 0, 0, lprect.Width(), lprect.Height(), SWP_NOMOVE | SWP_NOZORDER );

}

Good luck
Le Ridder Noir


Considdered to be the worlds fastest knoppenbonker.
10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru.

GeneralCommand routing/Context Menu problem Pin
Christian Graus7-Feb-01 16:06
protectorChristian Graus7-Feb-01 16:06 
GeneralChanging toolbar background Pin
Christian Graus7-Feb-01 15:28
protectorChristian Graus7-Feb-01 15:28 
GeneralCRicheditView and WYSIWYG page effect Pin
7-Feb-01 13:09
suss7-Feb-01 13:09 
GeneralWaitForSingleObject() Problem!!!!! Pin
Richard Cheng7-Feb-01 11:21
Richard Cheng7-Feb-01 11:21 
GeneralRe: WaitForSingleObject() Problem!!!!! Pin
Erik Funkenbusch7-Feb-01 11:30
Erik Funkenbusch7-Feb-01 11:30 
GeneralRe: WaitForSingleObject() Problem!!!!! Pin
Richard Cheng8-Feb-01 9:10
Richard Cheng8-Feb-01 9:10 
QuestionHow to determine if a user is logged on to the system from a service Pin
7-Feb-01 9:04
suss7-Feb-01 9:04 
AnswerRe: How to determine if a user is logged on to the system from a service Pin
Erik Funkenbusch7-Feb-01 11:34
Erik Funkenbusch7-Feb-01 11:34 
GeneralRe: How to determine if a user is logged on to the system from a service Pin
Joe Moldovan9-Feb-01 11:54
Joe Moldovan9-Feb-01 11:54 
GeneralRedirecting console output Pin
7-Feb-01 7:17
suss7-Feb-01 7:17 
GeneralRe: Redirecting console output Pin
Matt Gullett7-Feb-01 7:42
Matt Gullett7-Feb-01 7:42 
Questionhow to save the all contend of scrollview to a bitmap file Pin
7-Feb-01 5:55
suss7-Feb-01 5:55 
AnswerRe: how to save the all contend of scrollview to a bitmap file Pin
l a u r e n7-Feb-01 6:59
l a u r e n7-Feb-01 6:59 
GeneralRe: how to save the all contend of scrollview to a bitmap file Pin
8-Feb-01 4:54
suss8-Feb-01 4:54 
AnswerRe: how to save the all contend of scrollview to a bitmap file Pin
Chris Losinger7-Feb-01 8:01
professionalChris Losinger7-Feb-01 8:01 
GeneralRe: how to save the all contend of scrollview to a bitmap file Pin
l a u r e n7-Feb-01 9:43
l a u r e n7-Feb-01 9:43 
GeneralRe: how to save the all contend of scrollview to a bitmap file Pin
Chris Losinger7-Feb-01 10:00
professionalChris Losinger7-Feb-01 10:00 

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.