Click here to Skip to main content
15,949,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
I need to scroll the CFormView derived view to the top of the form. When I use OnScroll with SB_TOP the form scrolls only one line up after each ESC key press. However, using SendMessage function works just fine.

Am I doing something wrong? (VC 6.0)

Yes, I was not reading "fine print"!


As always please ignore the dereferencing symbol, it is actually "->".

Any constructive comments are appreciated.
Cheers Vaclav




     if(pMsg->message == WM_KEYDOWN)
     {
                 if(pMsg->wParam==VK_F2)
               {
                    TRACE("\nBOOL CFD2008View::PreTranslateMessage(MSG* pMsg)   VK_F2");
                    m_edit.SetFocus();

               }


               if(pMsg->wParam==VK_ESCAPE)
               {
                    TRACE("\nBOOL CFD2008View::PreTranslateMessage(MSG* pMsg)   VK_ESCAPE");
                    ShowWindow(SW_HIDE);
                    int iPos = 0 ;
                    SetDlgItemText(IDC_EDIT1,"");
                    C_ResetCompletionFlags();
                   
                    SendMessage(WM_VSCROLL, SB_TOP,0);   // works OK
                                 OnScroll(SB_TOP,iPos,TRUE);            // scrolls one line up only

                    ShowWindow(SW_SHOWMAXIMIZED);
                                  m_edit.SetFocus();

               }

modified on Friday, June 19, 2009 9:44 PM

AnswerRe: MFC CFormView SB_TOP bug? Pin
Ozer Karaagac19-Jun-09 15:04
professionalOzer Karaagac19-Jun-09 15:04 
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 
GeneralRe: sprintf and strcpy - Compiler warning Pin
CPallini19-Jun-09 10:05
mveCPallini19-Jun-09 10:05 
GeneralRe: sprintf and strcpy - Compiler warning Pin
p_196020-Jun-09 2:30
p_196020-Jun-09 2:30 
AnswerRe: sprintf and strcpy - Compiler warning Pin
Ozer Karaagac19-Jun-09 12:29
professionalOzer Karaagac19-Jun-09 12:29 
AnswerRe: sprintf and strcpy - Compiler warning Pin
Rajesh R Subramanian19-Jun-09 22:49
professionalRajesh R Subramanian19-Jun-09 22:49 
GeneralRe: sprintf and strcpy - Compiler warning Pin
dipuks20-Jun-09 7:52
dipuks20-Jun-09 7:52 

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.