Click here to Skip to main content
15,922,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: increase the size of the DialogBox during RunTime Pin
Ozer Karaagac20-Jun-09 15:21
professionalOzer Karaagac20-Jun-09 15:21 
AnswerRe: increase the size of the DialogBox during RunTime Pin
Rajesh R Subramanian20-Jun-09 3:02
professionalRajesh R Subramanian20-Jun-09 3:02 
GeneralRe: increase the size of the DialogBox during RunTime Pin
p_196020-Jun-09 18:05
p_196020-Jun-09 18:05 
QuestionHow to close the window? Pin
Nikesh Jagtap19-Jun-09 22:07
Nikesh Jagtap19-Jun-09 22:07 
AnswerRe: How to close the window? Pin
Rajesh R Subramanian19-Jun-09 22:44
professionalRajesh R Subramanian19-Jun-09 22:44 
QuestionHow to close the window? Pin
Nikesh Jagtap19-Jun-09 22:01
Nikesh Jagtap19-Jun-09 22:01 
AnswerRe: How to close the window? Pin
Sarath C20-Jun-09 0:30
Sarath C20-Jun-09 0:30 
QuestionComboBox in WIN32 programming. Pin
birajendu19-Jun-09 20:49
birajendu19-Jun-09 20:49 
AnswerRe: ComboBox in WIN32 programming. Pin
Sarath C20-Jun-09 0:20
Sarath C20-Jun-09 0:20 
GeneralRe: ComboBox in WIN32 programming. Pin
birajendu20-Jun-09 9:03
birajendu20-Jun-09 9:03 
QuestionNeed simple way to Launch a web based Php program from Windows MFC app Pin
Stevej19-Jun-09 16:59
Stevej19-Jun-09 16:59 
AnswerRe: Need simple way to Launch a web based Php program from Windows MFC app Pin
Sarath C19-Jun-09 19:33
Sarath C19-Jun-09 19:33 
QuestionSOLVED - MFC CFormView SB_TOP bug? [modified] Pin
Vaclav_19-Jun-09 13:48
Vaclav_19-Jun-09 13:48 
AnswerRe: MFC CFormView SB_TOP bug? Pin
Ozer Karaagac19-Jun-09 15:04
professionalOzer Karaagac19-Jun-09 15:04 
The first parameter of OnScroll() is composed of two parts; a low-order byte for horizontal scrolling, and high-order byte for vertical scrolling.

For vertical scrolling to top, you should use like that.

OnScroll(MAKEWORD(0, SB_TOP), 0, TRUE);

But. if the form has horizontal scrollbar, you will have another problem because of design of that function. SB_LINEUP or SB_LINELEFT is defined as 0. And the function runs in both direction at one whack. That means 0 in high-order byte will be interpreted horizontal line left at the same time. So, you will have unwanted left scroll with above call.

You may have to call again to keep the horizontal position unchanged.

OnScroll(MAKEWORD(SB_LINEDOWN, 0), 0, TRUE);

However, top for both direction will work well.

OnScroll(MAKEWORD(SB_TOP, SB_TOP), 0, TRUE);

Or if there is no horizontal, there won't be any problem.

Otherwise, IMHO, SendMessage(...) way is more appropiate.
GeneralRe: MFC CFormView SB_TOP bug? Pin
Vaclav_19-Jun-09 15:48
Vaclav_19-Jun-09 15:48 
QuestionLooking for an HTML Rendering engine (with JAVASCRIPT support) to integrate in an MFC application. Must be able to call the javascript from C++ and visversa Pin
Ahmed Charfeddine19-Jun-09 13:40
Ahmed Charfeddine19-Jun-09 13:40 
AnswerRe: Looking for an HTML Rendering engine (with JAVASCRIPT support) to integrate in an MFC application. Must be able to call the javascript from C++ and visversa Pin
Sarath C19-Jun-09 19:44
Sarath C19-Jun-09 19:44 
GeneralRe: Looking for an HTML Rendering engine (with JAVASCRIPT support) to integrate in an MFC application. Must be able to call the javascript from C++ and visversa Pin
Ahmed Charfeddine20-Jun-09 0:11
Ahmed Charfeddine20-Jun-09 0:11 
QuestionUsing MAPI to confirm valid email address format (without sending an email or accessing their Address Book)? Pin
AmVal19-Jun-09 11:05
AmVal19-Jun-09 11:05 
AnswerRe: Using MAPI to confirm valid email address format (without sending an email or accessing their Address Book)? Pin
Stuart Dootson19-Jun-09 12:40
professionalStuart Dootson19-Jun-09 12:40 
GeneralRe: Using MAPI to confirm valid email address format (without sending an email or accessing their Address Book)? Pin
kilt20-Jun-09 10:16
kilt20-Jun-09 10:16 
GeneralRe: Using MAPI to confirm valid email address format (without sending an email or accessing their Address Book)? [modified] Pin
Stuart Dootson20-Jun-09 13:52
professionalStuart Dootson20-Jun-09 13:52 
Questionsprintf and strcpy - Compiler warning Pin
dipuks19-Jun-09 7:27
dipuks19-Jun-09 7:27 
QuestionRe: sprintf and strcpy - Compiler warning Pin
David Crow19-Jun-09 7:47
David Crow19-Jun-09 7:47 
AnswerRe: sprintf and strcpy - Compiler warning Pin
Luc Pattyn19-Jun-09 7:51
sitebuilderLuc Pattyn19-Jun-09 7:51 

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.