Click here to Skip to main content
15,915,501 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIShellExecuteHook Pin
ragavan15-Dec-05 16:57
ragavan15-Dec-05 16:57 
Questioncdrom sector reading , writing using Deviceiocontrol Pin
Hemachandran pozhichalur15-Dec-05 16:38
Hemachandran pozhichalur15-Dec-05 16:38 
AnswerRe: cdrom sector reading , writing using Deviceiocontrol Pin
kakan15-Dec-05 19:41
professionalkakan15-Dec-05 19:41 
Questionwindows hook Pin
binZhao15-Dec-05 15:15
binZhao15-Dec-05 15:15 
QuestionComboboxex Editbox limit Pin
ClickHeRe15-Dec-05 14:57
ClickHeRe15-Dec-05 14:57 
AnswerRe: Comboboxex Editbox limit Pin
David Crow15-Dec-05 15:58
David Crow15-Dec-05 15:58 
AnswerRe: Comboboxex Editbox limit Pin
Aamir Butt15-Dec-05 18:52
Aamir Butt15-Dec-05 18:52 
GeneralRe: Comboboxex Editbox limit Pin
ClickHeRe15-Dec-05 23:42
ClickHeRe15-Dec-05 23:42 
Sorry to say this but neither works

As a test I wrote the following to see the limits and set the good styles:

HWND hwndcombo = FindWindowEx( this->m_Hwnd, NULL, NULL, NULL );
SetWindowLong( hwndcombo, GWL_STYLE, GetWindowLong( hwndcombo, GWL_STYLE ) | CBS_AUTOHSCROLL );

int n = SendMessage( this->m_EditHwnd, EM_GETLIMITTEXT, 0, 0 );
char data[500];
wsprintf( data, "Limit : %d", n );
mIRCError( data );

SendMessage( hwndcombo, CB_LIMITTEXT, (WPARAM) 0, (LPARAM) 0 );

n = SendMessage( this->m_EditHwnd, EM_GETLIMITTEXT, 0, 0 );
wsprintf( data, "Limit : %d", n );
mIRCError( data );

Edit_LimitText( this->m_EditHwnd, 0 );

n = SendMessage( this->m_EditHwnd, EM_GETLIMITTEXT, 0, 0 );
wsprintf( data, "Limit : %d", n );
mIRCError( data );

The combo child of the comboboxex has its CBS_AUTOHSCROLL style, and the edit has its EM_AUTOHSCROLL style and the output of the above gives :

Limit : 30000
Limit : 30000
Limit : 2147483646

So the initial limit is already 30000 chars so it isn't the culprit.

I still hear the little ding sound when I get to the end of the editbox notifying I can't put more there even if the AutoHScroll style is there and the limit is way beyond the actual control limit.

GeneralRe: Comboboxex Editbox limit Pin
David Crow16-Dec-05 3:17
David Crow16-Dec-05 3:17 
GeneralRe: Comboboxex Editbox limit Pin
ClickHeRe16-Dec-05 9:44
ClickHeRe16-Dec-05 9:44 
QuestionAbout CAnimateCtrl Pin
Member 185845015-Dec-05 14:12
Member 185845015-Dec-05 14:12 
QuestionDebugging DLL loaded with LoadLibrary Pin
crewchill15-Dec-05 13:55
crewchill15-Dec-05 13:55 
AnswerRe: Debugging DLL loaded with LoadLibrary Pin
Neville Franks15-Dec-05 15:22
Neville Franks15-Dec-05 15:22 
GeneralRe: Debugging DLL loaded with LoadLibrary Pin
crewchill16-Dec-05 0:08
crewchill16-Dec-05 0:08 
QuestionMAPIAllocateBuffer Pin
Peter Weyzen15-Dec-05 12:27
Peter Weyzen15-Dec-05 12:27 
QuestionForms Tutorial Pin
Daniel Odom15-Dec-05 12:12
Daniel Odom15-Dec-05 12:12 
AnswerRe: Forms Tutorial Pin
Mark F.23-Dec-05 10:05
Mark F.23-Dec-05 10:05 
QuestionComipling using the cl command Pin
Soaring Eagle15-Dec-05 11:54
Soaring Eagle15-Dec-05 11:54 
AnswerRe: Comipling using the cl command Pin
PJ Arends15-Dec-05 14:12
professionalPJ Arends15-Dec-05 14:12 
AnswerRe: Comipling using the cl command Pin
TheGreatAndPowerfulOz15-Dec-05 16:19
TheGreatAndPowerfulOz15-Dec-05 16:19 
QuestionCapturing from a hidden webbrowser Pin
Rheikon15-Dec-05 9:53
Rheikon15-Dec-05 9:53 
QuestionProblem about output files Pin
knapak15-Dec-05 9:32
knapak15-Dec-05 9:32 
AnswerRe: Problem about output files Pin
Chris Losinger15-Dec-05 10:01
professionalChris Losinger15-Dec-05 10:01 
GeneralRe: Problem about output files Pin
knapak15-Dec-05 10:07
knapak15-Dec-05 10:07 
GeneralRe: Problem about output files Pin
Nish Nishant15-Dec-05 10:11
sitebuilderNish Nishant15-Dec-05 10:11 

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.