Click here to Skip to main content
15,904,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to set the width of scrollbar in listbox Pin
raj157624-Feb-11 20:48
raj157624-Feb-11 20:48 
AnswerRe: how to set the width of scrollbar in listbox Pin
Hans Dietrich24-Feb-11 21:07
mentorHans Dietrich24-Feb-11 21:07 
Questionhow to integrate WPF window designs in vc++ win32/mfc environment? Pin
mathivanaan24-Feb-11 19:15
mathivanaan24-Feb-11 19:15 
AnswerRe: how to integrate WPF window designs in vc++ win32/mfc environment? Pin
Rolf Kristensen24-Feb-11 20:54
Rolf Kristensen24-Feb-11 20:54 
AnswerRe: how to integrate WPF window designs in vc++ win32/mfc environment? Pin
Richard MacCutchan24-Feb-11 22:55
mveRichard MacCutchan24-Feb-11 22:55 
QuestionConvert from Double to Integer w/o Rounding in C++ Pin
User 741604624-Feb-11 12:06
User 741604624-Feb-11 12:06 
AnswerRe: Convert from Double to Integer w/o Rounding in C++ Pin
Luc Pattyn24-Feb-11 12:30
sitebuilderLuc Pattyn24-Feb-11 12:30 
GeneralRe: Convert from Double to Integer w/o Rounding in C++ Pin
User 741604624-Feb-11 13:31
User 741604624-Feb-11 13:31 
QuestionRe: Convert from Double to Integer w/o Rounding in C++ Pin
Luc Pattyn24-Feb-11 13:42
sitebuilderLuc Pattyn24-Feb-11 13:42 
AnswerRe: Convert from Double to Integer w/o Rounding in C++ Pin
«_Superman_»24-Feb-11 18:51
professional«_Superman_»24-Feb-11 18:51 
AnswerRe: Convert from Double to Integer w/o Rounding in C++ Pin
Bernhard Hiller24-Feb-11 20:56
Bernhard Hiller24-Feb-11 20:56 
AnswerRe: Convert from Double to Integer w/o Rounding in C++ Pin
Andrew Brock24-Feb-11 22:20
Andrew Brock24-Feb-11 22:20 
GeneralRe: Convert from Double to Integer w/o Rounding in C++ Pin
User 741604625-Feb-11 2:44
User 741604625-Feb-11 2:44 
QuestionHow can I retrieve handlw of dropdown list box ? Pin
_Flaviu24-Feb-11 5:20
_Flaviu24-Feb-11 5:20 
AnswerRe: How can I retrieve handlw of dropdown list box ? Pin
Hans Dietrich24-Feb-11 5:31
mentorHans Dietrich24-Feb-11 5:31 
GeneralRe: How can I retrieve handlw of dropdown list box ? Pin
_Flaviu24-Feb-11 7:02
_Flaviu24-Feb-11 7:02 
AnswerRe: How can I retrieve handlw of dropdown list box ? Pin
Code-o-mat24-Feb-11 8:33
Code-o-mat24-Feb-11 8:33 
GeneralRe: How can I retrieve handlw of dropdown list box ? Pin
_Flaviu24-Feb-11 9:52
_Flaviu24-Feb-11 9:52 
GeneralRe: How can I retrieve handlw of dropdown list box ? Pin
Code-o-mat24-Feb-11 9:54
Code-o-mat24-Feb-11 9:54 
GeneralRe: How can I retrieve handle of dropdown list box ? Pin
_Flaviu24-Feb-11 22:03
_Flaviu24-Feb-11 22:03 
GeneralRe: How can I retrieve handle of dropdown list box ? Pin
Code-o-mat24-Feb-11 22:06
Code-o-mat24-Feb-11 22:06 
GeneralRe: How can I retrieve handle of dropdown list box ? Pin
_Flaviu26-Feb-11 22:09
_Flaviu26-Feb-11 22:09 
QuestionDisabling Keypress on MessageBox Pin
si_6924-Feb-11 0:45
si_6924-Feb-11 0:45 
AnswerRe: Disabling Keypress on MessageBox PinPopular
Andrew Brock24-Feb-11 1:13
Andrew Brock24-Feb-11 1:13 
AnswerRe: Disabling Keypress on MessageBox Pin
David Crow24-Feb-11 2:57
David Crow24-Feb-11 2:57 
si_69 wrote:
I have an application where a user types a message into an edit control, after they have exceeded a certain number of characters they are shown a warning. ie AfxMessageBox("you have exceeded X number of characters");


This sounds messy. Why not just send the edit control a EM_LIMITTEXT message?

si_69 wrote:
it seems that if the user is typing fast by pressing return of the space bar this is calling the OnOK and quickly turning off the message box so the users are not seeing the warning.


You should initially disable the OK button and only enable it if all of the criteria have been met.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather


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.