Click here to Skip to main content
16,006,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about CString Pin
Michael P Butler12-Oct-01 2:42
Michael P Butler12-Oct-01 2:42 
GeneralRe: about CString Pin
Maer72713-Oct-01 1:24
Maer72713-Oct-01 1:24 
GeneralRe: about CString Pin
Jim A. Johnson12-Oct-01 2:44
Jim A. Johnson12-Oct-01 2:44 
GeneralRe: Use the string table. Pin
Masaaki Onishi12-Oct-01 4:17
Masaaki Onishi12-Oct-01 4:17 
GeneralRe: Use the string table. Pin
Maer72713-Oct-01 1:29
Maer72713-Oct-01 1:29 
QuestionHow to compile a HTML file into one file Pin
inforix11-Oct-01 23:34
inforix11-Oct-01 23:34 
AnswerRe: How to compile a HTML file into one file Pin
Paolo Messina12-Oct-01 6:18
professionalPaolo Messina12-Oct-01 6:18 
QuestionHow to handle scrollbar? Pin
11-Oct-01 23:25
suss11-Oct-01 23:25 
Hello:
In order to display a bmp Image in a dialog box I created a class named "CImageBox" which was derived from CWnd just like "CStatic". "CImageBox" was created with the style "...|WS_HSCROLL|WS_VSCROLL".
Here comes the problem: How to handle the horizontal and vertical scrollbar?
These are my three unsuccessful experiences:
<1>CWnd::GetScrollBarCtrl() always return NULL;
<2>CView::GetScrollBarCtrl() do not seem to be applicative;
<3>I try to handle WM_VSCROLL in "CImageBox":
void CImageBox::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) ;
The parameter "pScrollBar" is always NULL so I can't use the SetScrollPos() member function.
However "CEdit"(MFC) do well in this,but I can't find the source code of CEdit::GetScrollBarCtrl().
Can anybody help me?
Any advice is appreciable.<shawell2000@163.net>
AnswerRe: How to handle scrollbar? Pin
Tomasz Sowinski11-Oct-01 23:53
Tomasz Sowinski11-Oct-01 23:53 
GeneralRC file compilation fails giving error RC1015 Pin
Lakshmi11-Oct-01 20:48
Lakshmi11-Oct-01 20:48 
GeneralRe: RC file compilation fails giving error RC1015 Pin
Anna-Jayne Metcalfe11-Oct-01 21:47
Anna-Jayne Metcalfe11-Oct-01 21:47 
GeneralGenerate Reports Using Crystal Reports 7 in VC Pin
Statbat11-Oct-01 20:39
Statbat11-Oct-01 20:39 
GeneralRe: Generate Reports Using Crystal Reports 7 in VC Pin
Masaaki Onishi12-Oct-01 4:26
Masaaki Onishi12-Oct-01 4:26 
GeneralRe: Generate Reports Using Crystal Reports 7 in VC Pin
Rashid Thadha12-Oct-01 6:53
Rashid Thadha12-Oct-01 6:53 
GeneralFiles and Directories Pin
Michael Martin11-Oct-01 18:31
professionalMichael Martin11-Oct-01 18:31 
GeneralRe: Files and Directories Pin
Bernhard11-Oct-01 19:37
Bernhard11-Oct-01 19:37 
GeneralRe: Files and Directories Pin
Nish Nishant11-Oct-01 21:01
sitebuilderNish Nishant11-Oct-01 21:01 
QuestionHelp Me? Pin
11-Oct-01 17:08
suss11-Oct-01 17:08 
AnswerRe: Help Me? Pin
Dan Madden14-Oct-01 2:29
Dan Madden14-Oct-01 2:29 
QuestionNamespace extension - cut-and-paste feedback from explorer? Pin
reverendshoebox11-Oct-01 15:45
reverendshoebox11-Oct-01 15:45 
QuestionHow can I extract numbers from string using basic::string? (STL) Pin
Ryan Park11-Oct-01 15:11
Ryan Park11-Oct-01 15:11 
AnswerRe: How can I extract numbers from string using basic::string? (STL) Pin
Chris Losinger11-Oct-01 16:10
professionalChris Losinger11-Oct-01 16:10 
GeneralRe: How can I extract numbers from string using basic::string? (STL) Pin
Rashid Thadha12-Oct-01 6:49
Rashid Thadha12-Oct-01 6:49 
GeneralRe: How can I extract numbers from string using basic::string? (STL) Pin
12-Oct-01 7:44
suss12-Oct-01 7:44 
GeneralRe: How can I extract numbers from string using basic::string? (STL) Pin
Ryan Park12-Oct-01 15:50
Ryan Park12-Oct-01 15:50 

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.