Click here to Skip to main content
15,888,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSerial port Receive problem Pin
sunny_vc4-Sep-08 14:55
sunny_vc4-Sep-08 14:55 
AnswerRe: Serial port Receive problem Pin
Iain Clarke, Warrior Programmer5-Sep-08 1:25
Iain Clarke, Warrior Programmer5-Sep-08 1:25 
Questionclear input buffer Pin
Sunday8PM4-Sep-08 12:15
Sunday8PM4-Sep-08 12:15 
AnswerRe: clear input buffer Pin
vikas amin4-Sep-08 13:40
vikas amin4-Sep-08 13:40 
QuestionRe: clear input buffer Pin
David Crow4-Sep-08 16:31
David Crow4-Sep-08 16:31 
AnswerRe: clear input buffer Pin
Sunday8PM4-Sep-08 19:38
Sunday8PM4-Sep-08 19:38 
QuestionCreateProcess(), CMD and character encoding. Pin
Member 38520244-Sep-08 11:43
Member 38520244-Sep-08 11:43 
QuestionAnother CScrollBar question Pin
KellyR4-Sep-08 11:08
KellyR4-Sep-08 11:08 
Hi, Mark directed me to the MSDN section about scrollbars this morning which helped a lot, but I still have one problem that I can't seem to solve:

Once again I'm using VC++ with MFC, and I have a CScrollBar that I want to use to scroll some custom controls.

I don't want to use the dialog's "built-in" scrollbar because it isn't in the right place and I have lots of other bits of data there, so I have a stand-alone CScrollBar control that I have mapped through DDX_Control to my dialog.

Since my scrollbar is stand-alone I had to subclass it in order to catch the WM_VSCROLL messages sent to its window when the bar is moved. This all works fine BUT ONLY when I have the scroll bar's style set as WM_VSCROLL. The style SHOULD be SBS_VERT, but when I make the style SBS_VERT instead of WM_VSCROLL, I no longer get any WM_VSCROLL messages in my subclassed process. What could I be doing wrong???

Also on a side note, it seems pretty ridiculous that I have to either subclass the control or overload it and handle OnVScroll explicitly to get the scroll bar to function. Is there a better way?

Thanks!

KR

AnswerRe: Another CScrollBar question Pin
Mark Salsbery4-Sep-08 11:33
Mark Salsbery4-Sep-08 11:33 
GeneralRe: Another CScrollBar question Pin
KellyR4-Sep-08 11:51
KellyR4-Sep-08 11:51 
Questionproblems in Modeless dialog (on ok) writing to a file(internet sessiosion - ftpconnection) Pin
simon alec smith4-Sep-08 9:17
simon alec smith4-Sep-08 9:17 
QuestionMessageBox changes a str255 variable Pin
Grant Hudgens4-Sep-08 9:11
Grant Hudgens4-Sep-08 9:11 
QuestionHow to stop PC suspending or sleeping while app is running.. Pin
montiee4-Sep-08 9:03
montiee4-Sep-08 9:03 
AnswerRe: How to stop PC suspending or sleeping while app is running.. Pin
Perspx4-Sep-08 9:29
Perspx4-Sep-08 9:29 
GeneralRe: How to stop PC suspending or sleeping while app is running.. Pin
montiee4-Sep-08 12:20
montiee4-Sep-08 12:20 
QuestionSetting Children Nodes of Tree View Based on Parent Node [modified] Pin
Stuck At Zero4-Sep-08 7:42
Stuck At Zero4-Sep-08 7:42 
AnswerRe: Setting Children Nodes of Tree View Based on Parent Node Pin
led mike4-Sep-08 7:55
led mike4-Sep-08 7:55 
GeneralRe: Setting Children Nodes of Tree View Based on Parent Node Pin
Stuck At Zero4-Sep-08 8:00
Stuck At Zero4-Sep-08 8:00 
AnswerRe: Setting Children Nodes of Tree View Based on Parent Node Pin
Mark Salsbery4-Sep-08 7:59
Mark Salsbery4-Sep-08 7:59 
GeneralRe: Setting Children Nodes of Tree View Based on Parent Node Pin
Stuck At Zero4-Sep-08 8:03
Stuck At Zero4-Sep-08 8:03 
GeneralRe: Setting Children Nodes of Tree View Based on Parent Node Pin
Mark Salsbery4-Sep-08 9:10
Mark Salsbery4-Sep-08 9:10 
GeneralRe: Setting Children Nodes of Tree View Based on Parent Node Pin
Stuck At Zero4-Sep-08 9:32
Stuck At Zero4-Sep-08 9:32 
QuestionRe: Setting Children Nodes of Tree View Based on Parent Node Pin
Mark Salsbery4-Sep-08 9:33
Mark Salsbery4-Sep-08 9:33 
AnswerRe: Setting Children Nodes of Tree View Based on Parent Node Pin
Stuck At Zero4-Sep-08 9:35
Stuck At Zero4-Sep-08 9:35 
GeneralRe: Setting Children Nodes of Tree View Based on Parent Node Pin
Mark Salsbery4-Sep-08 9:53
Mark Salsbery4-Sep-08 9:53 

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.