Click here to Skip to main content
15,913,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMove Up/Down in ListBox? Pin
Lord Kixdemp26-Dec-05 12:03
Lord Kixdemp26-Dec-05 12:03 
JokeRe: Move Up/Down in ListBox? Pin
ChrisLang26-Dec-05 12:38
ChrisLang26-Dec-05 12:38 
GeneralRe: Move Up/Down in ListBox? Pin
Lord Kixdemp26-Dec-05 12:49
Lord Kixdemp26-Dec-05 12:49 
QuestionUsing variable in two forms Pin
MsFiTProgrammer26-Dec-05 8:40
MsFiTProgrammer26-Dec-05 8:40 
AnswerRe: Using variable in two forms Pin
javanull26-Dec-05 16:26
javanull26-Dec-05 16:26 
QuestionHow to create a view larger than Max Int Pin
ChrisLang26-Dec-05 8:26
ChrisLang26-Dec-05 8:26 
AnswerRe: How to create a view larger than Max Int Pin
Gary R. Wheeler26-Dec-05 9:38
Gary R. Wheeler26-Dec-05 9:38 
QuestionRe: How to create a view larger than Max Int Pin
ChrisLang26-Dec-05 12:30
ChrisLang26-Dec-05 12:30 
Gary,

Thank you for your response.

The problems stems from actually creating the view. I call new CmyView and then call CREATE for the CmyView object which is subclassed from CWnd. In one of the overridden methods of CWnd::Create you can specify the x and y position of the view. Initially I just use, 0, 0 for x and y. Then after reading more information from the file (CmyView is reading the file to create the window from the values in the file) I call the essentially call CWnd::MoveWindow (CmyView does not override this method of CWnd). Although the compiler allows me to actually pass in a number larger than 32768, the new view is placed at a value less than 32768.

The scroll bar and displaying the correct portion of the scroll window is working fine. The problem is all CmyView objects which occur after 32768, are being drawn on top of each other.

I had a work around by adding all CMyView into another layer and then placing that layer in the CScrollView. Basically what I was doing was creating 2 CWnd objects call them CMiddleView objects and making the height of the intial CMiddleView object as near 32768 as possible (if adding another CmyView made the bottom of the initial CMiddleView over 32768 then I add it to the second CMiddleView object). Next I'd position top the second CMiddleView at bottom of the initial view. Like I said the scroll view worked wonderfully and I could scroll basically 2*32768.

But then the customer had MORE data, and now I need to postion CmyViews from 0 to somewhere up around 85000.

Again, I'm not getting a compiler errors, but the CWnd derived objects are not being positioned correctly if the MoveWindow method is called with anything over 32768.

Chris
AnswerRe: How to create a view larger than Max Int Pin
Gary R. Wheeler27-Dec-05 2:09
Gary R. Wheeler27-Dec-05 2:09 
AnswerRe: How to create a view larger than Max Int Pin
ChrisLang27-Dec-05 3:01
ChrisLang27-Dec-05 3:01 
AnswerRe: How to create a view larger than Max Int Pin
ChrisLang27-Dec-05 5:48
ChrisLang27-Dec-05 5:48 
Questionmy_page.htm and .ocx Pin
oversight-[project-zero]26-Dec-05 7:34
oversight-[project-zero]26-Dec-05 7:34 
QuestionFinding the EOF!!! Pin
DDeliyiannis26-Dec-05 5:44
DDeliyiannis26-Dec-05 5:44 
AnswerRe: Finding the EOF!!! Pin
Jörgen Sigvardsson26-Dec-05 5:51
Jörgen Sigvardsson26-Dec-05 5:51 
AnswerRe: Finding the EOF!!! Pin
vikas amin26-Dec-05 19:30
vikas amin26-Dec-05 19:30 
GeneralRe: Finding the EOF!!! Pin
sunit526-Dec-05 20:22
sunit526-Dec-05 20:22 
QuestionDirectShow: Getting the window handle of a panel Pin
Ramow26-Dec-05 5:17
Ramow26-Dec-05 5:17 
AnswerRe: DirectShow: Getting the window handle of a panel Pin
KifayatullahKhan26-Dec-05 18:28
KifayatullahKhan26-Dec-05 18:28 
QuestionGetting started with RegEx ? Pin
Mark F.26-Dec-05 3:55
Mark F.26-Dec-05 3:55 
AnswerRe: Getting started with RegEx ? Pin
khan++26-Dec-05 4:15
khan++26-Dec-05 4:15 
GeneralRe: Getting started with RegEx ? Pin
Mark F.26-Dec-05 4:34
Mark F.26-Dec-05 4:34 
QuestionDrawIcon in MFC Pin
inf00926-Dec-05 3:17
inf00926-Dec-05 3:17 
AnswerRe: DrawIcon in MFC Pin
khan++26-Dec-05 3:42
khan++26-Dec-05 3:42 
GeneralRe: DrawIcon in MFC Pin
inf00929-Dec-05 6:33
inf00929-Dec-05 6:33 
QuestionDialog creation fails using excel addin in Visual C++ .Net but works with VC 6.0 Pin
Mayank Ji26-Dec-05 2:05
Mayank Ji26-Dec-05 2:05 

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.