Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to change CEdit's background color and text color? thanks. Pin
LeeeNN21-Nov-05 17:18
LeeeNN21-Nov-05 17:18 
AnswerRe: How to change CEdit's background color and text color? thanks. Pin
Owner drawn21-Nov-05 19:33
Owner drawn21-Nov-05 19:33 
QuestionHow to display value immediatle to status bar by SenMessage() Pin
quangpk21-Nov-05 16:17
quangpk21-Nov-05 16:17 
AnswerRe: How to display value immediatle to status bar by SenMessage() Pin
Christian Graus21-Nov-05 16:35
protectorChristian Graus21-Nov-05 16:35 
AnswerRe: How to display value immediatle to status bar by SenMessage() Pin
khan++21-Nov-05 19:46
khan++21-Nov-05 19:46 
AnswerRe: How to display value immediatle to status bar by SenMessage() Pin
Owner drawn21-Nov-05 19:57
Owner drawn21-Nov-05 19:57 
QuestionBoost with VC8 Pin
Ed K21-Nov-05 16:11
Ed K21-Nov-05 16:11 
QuestionCScrollBar: what's the secret? Pin
Jamaica21-Nov-05 15:15
Jamaica21-Nov-05 15:15 
I've torn out what little hair I have on this.

I'm using VS 2005 Beta in case it makes a difference.
I create a new Dialog-based MFC App.
I put a picture control on it (CStatic with frame style).
I align a couple of scrollbars to the frame edge.
(I gave up trying to get the inherent CWnd scrollbars to work, but they behave the same.)
I try to code behind the scrollbars with calls to:
- SetScrollInfo()
- EnableScrollBar()
- ShowScrollBar()
( slightly different functions are required for the CWnd scrollbars)

The effects of SetScrollInfo() can be seen in the thumb size, and the ShowScrollBar() works as expected. But do you think I can actually get the scroll bar to do anything -- let me move the thumb, or trip my breakpoint in the OnVScroll() handler I have waiting to pounce?

I can't see the magic secret in any projects I've downloaded. Help!
AnswerAnd moreover... Pin
Jamaica21-Nov-05 15:21
Jamaica21-Nov-05 15:21 
AnswerRe: CScrollBar: what's the secret? Pin
Christian Graus21-Nov-05 16:37
protectorChristian Graus21-Nov-05 16:37 
GeneralRe: CScrollBar: what's the secret? Pin
Jamaica21-Nov-05 16:53
Jamaica21-Nov-05 16:53 
GeneralRe: CScrollBar: what's the secret? Pin
Christian Graus21-Nov-05 16:59
protectorChristian Graus21-Nov-05 16:59 
QuestionTesting for empty C-Style string... Pin
Blake Miller21-Nov-05 11:32
Blake Miller21-Nov-05 11:32 
AnswerRe: Testing for empty C-Style string... Pin
PJ Arends21-Nov-05 12:11
professionalPJ Arends21-Nov-05 12:11 
GeneralRe: Testing for empty C-Style string... Pin
Blake Miller22-Nov-05 4:25
Blake Miller22-Nov-05 4:25 
AnswerRe: Testing for empty C-Style string... Pin
toxcct21-Nov-05 22:22
toxcct21-Nov-05 22:22 
AnswerRe: Testing for empty C-Style string... Pin
Owner drawn22-Nov-05 1:11
Owner drawn22-Nov-05 1:11 
AnswerRe: Testing for empty C-Style string... Pin
wboncal22-Nov-05 7:59
wboncal22-Nov-05 7:59 
QuestionHow to print content of a CRichEditCtrl to a Rect Pin
AnTri21-Nov-05 9:43
AnTri21-Nov-05 9:43 
AnswerRe: How to print content of a CRichEditCtrl to a Rect Pin
Aamir Butt21-Nov-05 21:21
Aamir Butt21-Nov-05 21:21 
QuestionCheck box next to selected menu items Pin
NYTSX21-Nov-05 9:05
NYTSX21-Nov-05 9:05 
AnswerRe: Check box next to selected menu items Pin
Maximilien21-Nov-05 9:24
Maximilien21-Nov-05 9:24 
GeneralRe: Check box next to selected menu items Pin
NYTSX21-Nov-05 9:30
NYTSX21-Nov-05 9:30 
AnswerRe: Check box next to selected menu items Pin
NYTSX22-Nov-05 1:53
NYTSX22-Nov-05 1:53 
QuestionDebugging DLL problem Pin
Bob Stanneveld21-Nov-05 7:57
Bob Stanneveld21-Nov-05 7:57 

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.