Click here to Skip to main content
15,911,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How create a member variable of type (a class) Pin
toxcct23-Apr-04 2:06
toxcct23-Apr-04 2:06 
AnswerRe: How create a member variable of type (a class) Pin
ChuThaiDuong23-Apr-04 2:23
ChuThaiDuong23-Apr-04 2:23 
GeneralRe: How create a member variable of type (a class) Pin
toxcct23-Apr-04 2:35
toxcct23-Apr-04 2:35 
GeneralRe: How create a member variable of type (a class) Pin
toxcct23-Apr-04 2:39
toxcct23-Apr-04 2:39 
GeneralRe: How create a member variable of type (a class) Pin
Alton Williams23-Apr-04 4:39
Alton Williams23-Apr-04 4:39 
GeneralRe: How create a member variable of type (a class) Pin
ChuThaiDuong23-Apr-04 15:06
ChuThaiDuong23-Apr-04 15:06 
GeneralCustomizing Scrollbar of clistctrl Pin
rajandpayal23-Apr-04 1:29
rajandpayal23-Apr-04 1:29 
GeneralRe: Customizing Scrollbar of clistctrl Pin
ohadp23-Apr-04 2:25
ohadp23-Apr-04 2:25 
I'll chip in after about 6 months of feddling with scroll-bars in the background of my work.

Up to and including Windows-2000:
You can eliminate window's scroll-bars by simple overriding OnNcCalcSize and OnNcPaint. You can either have OnNcCalcSize return no Non-Client area and bham, no scroll-bar (that's because scroll-bars are not autonomous windows, they are siply drawn in the window's Non-Client area).
You can also return some non-client area and your OnNcPaint can paint your scroll-bar there, or just override OnNcPaint and don't do anything there, that way you can have a non-client area and STILL have windows not draw it's scroll-bars (remember, in these versions of windows, the scroll-bars are drawn by OnNcPaint).

Windows-XP:
This version of windows introduces a new problem. The minute you have a non-client area, windows will manage to throw it's scroll-bars in there. No matter if you disabled them using the Flat-ScrollBar API, or even overrided OnNcPaint, it will draw them, I suspect it does it in the common-control's OnScroll.


I hope this gave you good enough information.

My final approach for this all was to have my scrollbar as an independant window right next to my scrollable-control. The control itself had no non-client area (so that window's XP won't draw it's own scroll-bar there), and I tied everything up nicely...

Hope this helped... Smile | :)
GeneralRe: Customizing Scrollbar of clistctrl Pin
rajandpayal24-Apr-04 3:42
rajandpayal24-Apr-04 3:42 
GeneralRe: Customizing Scrollbar of clistctrl Pin
ohadp24-Apr-04 19:08
ohadp24-Apr-04 19:08 
QuestionTwo overlapping windows, one flickers, howto solve ? Pin
ohadp23-Apr-04 1:16
ohadp23-Apr-04 1:16 
AnswerRe: Two overlapping windows, one flickers, howto solve ? Pin
Monty223-Apr-04 1:57
Monty223-Apr-04 1:57 
GeneralRe: Two overlapping windows, one flickers, howto solve ? Pin
ohadp23-Apr-04 2:10
ohadp23-Apr-04 2:10 
AnswerRe: Two overlapping windows, one flickers, howto solve ? Pin
Michael Dunn23-Apr-04 5:20
sitebuilderMichael Dunn23-Apr-04 5:20 
GeneralRe: Two overlapping windows, one flickers, howto solve ? Pin
ohadp23-Apr-04 12:37
ohadp23-Apr-04 12:37 
GeneralRe: Two overlapping windows, one flickers, howto solve ? Pin
ohadp24-Apr-04 19:37
ohadp24-Apr-04 19:37 
AnswerSOLVED: Two overlapping windows, one flickers, howto solve ? Pin
ohadp25-Apr-04 2:58
ohadp25-Apr-04 2:58 
Generallinking java in Microsoft visual c++ environment Pin
doctorit23-Apr-04 0:39
doctorit23-Apr-04 0:39 
GeneralRe: linking java in Microsoft visual c++ environment Pin
jmkhael23-Apr-04 0:57
jmkhael23-Apr-04 0:57 
QuestionVisual studio not find .ocx control licence ? Pin
vgrigor23-Apr-04 0:00
vgrigor23-Apr-04 0:00 
AnswerRe: Visual studio not find .ocx control licence ? Pin
Mike Dimmick23-Apr-04 1:58
Mike Dimmick23-Apr-04 1:58 
GeneralRe: Visual studio not find .ocx control licence ? Pin
vgrigor23-Apr-04 2:30
vgrigor23-Apr-04 2:30 
QuestionHow to tally an individual letter from input text Pin
Member 104400122-Apr-04 23:35
Member 104400122-Apr-04 23:35 
AnswerRe: How to tally an individual letter from input text Pin
toxcct23-Apr-04 0:37
toxcct23-Apr-04 0:37 
AnswerRe: How to tally an individual letter from input text Pin
jmkhael23-Apr-04 0:49
jmkhael23-Apr-04 0:49 

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.