Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: static text in mfc Pin
Hamid_RT10-Mar-09 2:12
Hamid_RT10-Mar-09 2:12 
QuestionGetDesktopWindow() Pin
sam_psycho9-Mar-09 18:01
sam_psycho9-Mar-09 18:01 
AnswerRe: GetDesktopWindow() Pin
«_Superman_»9-Mar-09 18:22
professional«_Superman_»9-Mar-09 18:22 
GeneralRe: GetDesktopWindow() Pin
sam_psycho9-Mar-09 20:59
sam_psycho9-Mar-09 20:59 
QuestionHelp with printing structures Pin
Pennycakes9-Mar-09 16:21
Pennycakes9-Mar-09 16:21 
AnswerRe: Help with printing structures - modify question please. Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:18
Iain Clarke, Warrior Programmer10-Mar-09 1:18 
GeneralRe: Help with printing structures - modify question please. Pin
Pennycakes23-Mar-09 9:59
Pennycakes23-Mar-09 9:59 
QuestionScroll Bars Pin
BobInNJ9-Mar-09 15:08
BobInNJ9-Mar-09 15:08 
I am looking at the book, “Windows 95 with MFC” by Jeff Prosise. In this book, there are two techniques for implementing scroll bars given. One approach is to process the messages ON_WM_VSCROLL and ON_WM_HSCROLL. The other approach is to use the class CScrollView.

I am currently using the first approach and I find that my application has the following problem: If I run the program and using the mouse I make the window small (in the horizontal direction) a horizontal scroll bar shows up. This is to be expected. I then use the mouse to move the scroll bar to the middle of the window. Now, I minimize the window and then maximize the window. After doing this, I would expect the text and the input field (of type CEdit) to be drawn aligned on the screen. However, this is not the case. The text is shifted to the right (at least relative to the input field). I do not understand why and I am hoping somebody here can tell me what I am missing.

Do you think switching to CScrollView will solve my problem?

Thanks

Bob
AnswerRe: Scroll Bars Pin
BobInNJ9-Mar-09 16:18
BobInNJ9-Mar-09 16:18 
AnswerRe: Scroll Bars Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:27
Iain Clarke, Warrior Programmer10-Mar-09 1:27 
GeneralRe: Scroll Bars Pin
BobInNJ10-Mar-09 4:19
BobInNJ10-Mar-09 4:19 
QuestionC HELP PLEASE!! [modified] Pin
posidonofthecode9-Mar-09 13:55
posidonofthecode9-Mar-09 13:55 
AnswerRe: C HELP PLEASE!! Pin
BobInNJ9-Mar-09 14:14
BobInNJ9-Mar-09 14:14 
GeneralRe: C HELP PLEASE!! Pin
posidonofthecode9-Mar-09 14:41
posidonofthecode9-Mar-09 14:41 
GeneralRe: C HELP PLEASE!! Pin
BobInNJ9-Mar-09 15:07
BobInNJ9-Mar-09 15:07 
AnswerRe: C HELP PLEASE!! Pin
David Crow9-Mar-09 15:58
David Crow9-Mar-09 15:58 
QuestionVBasic to VC++ syntax conversion Pin
Software20079-Mar-09 11:20
Software20079-Mar-09 11:20 
AnswerRe: VBasic to VC++ syntax conversion Pin
0x3c09-Mar-09 11:48
0x3c09-Mar-09 11:48 
GeneralRe: VBasic to VC++ syntax conversion Pin
Software20079-Mar-09 14:51
Software20079-Mar-09 14:51 
QuestionApplication Type - DLL Pin
su_penguin9-Mar-09 10:59
su_penguin9-Mar-09 10:59 
AnswerRe: Application Type - DLL Pin
su_penguin9-Mar-09 11:03
su_penguin9-Mar-09 11:03 
GeneralRe: Application Type - DLL Pin
su_penguin9-Mar-09 11:40
su_penguin9-Mar-09 11:40 
GeneralRe: Application Type - DLL Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:30
Iain Clarke, Warrior Programmer10-Mar-09 1:30 
QuestionIssue with localtime() Pin
Member 38480949-Mar-09 10:53
Member 38480949-Mar-09 10:53 
AnswerRe: Issue with localtime() Pin
Yusuf9-Mar-09 11:12
Yusuf9-Mar-09 11:12 

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.