Click here to Skip to main content
16,012,352 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThreads Pin
Frank Deo15-Jul-02 9:00
Frank Deo15-Jul-02 9:00 
GeneralRe: Threads Pin
Joaquín M López Muñoz15-Jul-02 9:12
Joaquín M López Muñoz15-Jul-02 9:12 
GeneralRe: Threads Pin
Frank Deo15-Jul-02 9:23
Frank Deo15-Jul-02 9:23 
Questioncan you disable all scrollbars in an MDI? Pin
ns15-Jul-02 8:50
ns15-Jul-02 8:50 
Generalquick SDI question Pin
ns15-Jul-02 8:46
ns15-Jul-02 8:46 
GeneralRe: quick SDI question Pin
PJ Arends15-Jul-02 15:23
professionalPJ Arends15-Jul-02 15:23 
GeneralRe: quick SDI question Pin
ns15-Jul-02 15:46
ns15-Jul-02 15:46 
GeneralRe: quick SDI question Pin
PJ Arends15-Jul-02 16:41
professionalPJ Arends15-Jul-02 16:41 
My guess is that you are doing something like :
void CMyFormView::OnSize(UINT nType, int cx, int cy)
{
    m_MyEditCtrl.MoveWindow(cx - EditCtrlWidth, 50, EditCtrlWidth, EditCtrlHeight);
...
in order to place the edit control at the right edge, 50 pixels from the top.

What you have to do is call GetScrollPosition() to figure the scrolling into the calculation
void CMyFormView::OnSize(UINT nType, int cx, int cy)
{
    int HScrollDistance = GetScrollPosition().y;
    m_MyEditCtrl.MoveWindow(cx - EditCtrlWidth, 50 - HScrollDistance, EditCtrlWidth, EditCtrlHeight);
...

HTH

---
CPUA 0x5041

Sonork 100.11743 Chicken Little

Within you lies the power for good - Use it!
GeneralI cant thank you enough!!!! Pin
ns15-Jul-02 17:00
ns15-Jul-02 17:00 
GeneralRe: I cant thank you enough!!!! Pin
PJ Arends15-Jul-02 17:14
professionalPJ Arends15-Jul-02 17:14 
Generaltrouble with movewindow and MDI scrolling Pin
ns15-Jul-02 7:45
ns15-Jul-02 7:45 
GeneralSetting font Pin
Al_Pennyworth15-Jul-02 7:20
Al_Pennyworth15-Jul-02 7:20 
QuestionChange font of CFileDialog ? Pin
dlhson15-Jul-02 7:15
dlhson15-Jul-02 7:15 
QuestionSocket problem ? Pin
dlhson15-Jul-02 7:13
dlhson15-Jul-02 7:13 
QuestionRegion into a polygon? Pin
phruby15-Jul-02 7:13
phruby15-Jul-02 7:13 
AnswerRe: Region into a polygon? Pin
Scott H. Settlemier15-Jul-02 10:06
Scott H. Settlemier15-Jul-02 10:06 
GeneralRe: Region into a polygon? Pin
phruby15-Jul-02 10:21
phruby15-Jul-02 10:21 
GeneralPrint something graphical on a printer Pin
Qadddd15-Jul-02 7:05
Qadddd15-Jul-02 7:05 
GeneralRe: Print something graphical on a printer Pin
Mike Nordell15-Jul-02 20:11
Mike Nordell15-Jul-02 20:11 
GeneralRe: Print something graphical on a printer Pin
Qadddd15-Jul-02 21:15
Qadddd15-Jul-02 21:15 
GeneralRe: Print something graphical on a printer Pin
Mike Nordell16-Jul-02 8:02
Mike Nordell16-Jul-02 8:02 
GeneralRe: Print something graphical on a printer Pin
Qadddd17-Jul-02 7:46
Qadddd17-Jul-02 7:46 
Questionhow to convert int to CString?? Pin
EBerlin15-Jul-02 7:06
EBerlin15-Jul-02 7:06 
AnswerRe: how to convert int to CString?? Pin
Chris Losinger15-Jul-02 7:07
professionalChris Losinger15-Jul-02 7:07 
GeneralRe: how to convert int to CString?? Pin
Anonymous15-Jul-02 7:32
Anonymous15-Jul-02 7:32 

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.