Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: use right(string,2) in c++ Pin
Joaquín M López Muñoz6-Mar-02 5:39
Joaquín M López Muñoz6-Mar-02 5:39 
GeneralRe: use right(string,2) in c++ Pin
tbbooher6-Mar-02 5:56
tbbooher6-Mar-02 5:56 
QuestionHow can I draw scrollbar created by WS_VSCROOL in non-client area myseft Pin
Wizard_016-Mar-02 3:23
Wizard_016-Mar-02 3:23 
AnswerRe: How can I draw scrollbar created by WS_VSCROOL in non-client area myseft Pin
Joaquín M López Muñoz6-Mar-02 6:05
Joaquín M López Muñoz6-Mar-02 6:05 
GeneralSizing CSplitterWnd columns Pin
Mark Donkers6-Mar-02 3:10
Mark Donkers6-Mar-02 3:10 
GeneralTeach me,come in please! Pin
big20026-Mar-02 3:08
big20026-Mar-02 3:08 
GeneralRe: Teach me,come in please! Pin
Mazdak6-Mar-02 3:25
Mazdak6-Mar-02 3:25 
QuestionHow can I draw scrollbar created by WS_VSCROOL in non-client area myseft Pin
Wizard_016-Mar-02 3:08
Wizard_016-Mar-02 3:08 
Some time ago I wrote the code for own control delived from CWnd. The class is using the code for drawing color edge (for redrawing standart windows client edge). This code is correct but it blink. :

void CWnd::OnNCPaint(){
CWnd::OnNCPaint(); // this line I have only for drawing scrollbars because i dont know how to draw it myself. If you call this function, Windows will draw standart client edge and the control (nonclient area) blink !!
CWindowDC dc(this);
CRect rect;
GetWindowRect(&rect);
dc.Draw3dRect(0,0,rect.Width(),rect.Height(),RGB(255,0,0),RGB(0,0,255));

}


I showed in MSDN but i dont find anything Frown | :-(

if you call this :
CScrollBar * scrollbar = GetScrollBarCtrl(SB_VERT);
scrollbar->Invalidate();
it will be assert because scrollbar is not valid window (ASSERT(::IsWindow(m_hWnd)))



Thanks very much !!!!!!!


Rose | [Rose]


WiiziSmile | :)
AnswerRe: How can I draw scrollbar created by WS_VSCROOL in non-client area myseft Pin
Tomasz Sowinski6-Mar-02 3:19
Tomasz Sowinski6-Mar-02 3:19 
GeneralRe: I hate to do this but, i just got one more question... Pin
Mark Donkers6-Mar-02 2:58
Mark Donkers6-Mar-02 2:58 
GeneralRe: I hate to do this but, i just got one more question... Pin
Joaquín M López Muñoz6-Mar-02 3:04
Joaquín M López Muñoz6-Mar-02 3:04 
GeneralRe: I hate to do this but, i just got one more question... Pin
Christian Graus6-Mar-02 10:26
protectorChristian Graus6-Mar-02 10:26 
GeneralRe: I hate to do this but, i just got one more question... Pin
SilverShalkin6-Mar-02 12:11
SilverShalkin6-Mar-02 12:11 
GeneralRe: I hate to do this but, i just got one more question... Pin
Christian Graus6-Mar-02 21:13
protectorChristian Graus6-Mar-02 21:13 
Generaldamn CSocket ! Pin
Mauricio Ritter6-Mar-02 0:35
Mauricio Ritter6-Mar-02 0:35 
GeneralRe: damn CSocket ! Pin
Nish Nishant6-Mar-02 0:46
sitebuilderNish Nishant6-Mar-02 0:46 
GeneralRe: damn CSocket ! Pin
Mauricio Ritter6-Mar-02 0:53
Mauricio Ritter6-Mar-02 0:53 
GeneralRe: damn CSocket ! Pin
Nish Nishant6-Mar-02 1:34
sitebuilderNish Nishant6-Mar-02 1:34 
GeneralRe: damn CSocket ! Pin
Tomasz Sowinski6-Mar-02 1:56
Tomasz Sowinski6-Mar-02 1:56 
GeneralRe: damn CSocket ! Pin
Nish Nishant6-Mar-02 2:00
sitebuilderNish Nishant6-Mar-02 2:00 
GeneralRe: damn CSocket ! Pin
Tomasz Sowinski6-Mar-02 2:09
Tomasz Sowinski6-Mar-02 2:09 
GeneralRe: damn CSocket ! Pin
Nish Nishant6-Mar-02 2:13
sitebuilderNish Nishant6-Mar-02 2:13 
GeneralRe: damn CSocket ! Pin
Mauricio Ritter6-Mar-02 2:00
Mauricio Ritter6-Mar-02 2:00 
GeneralRe: damn CSocket ! Pin
Nish Nishant6-Mar-02 2:07
sitebuilderNish Nishant6-Mar-02 2:07 
GeneralRe: damn CSocket ! Pin
Mauricio Ritter6-Mar-02 3:36
Mauricio Ritter6-Mar-02 3:36 

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.