Difference between MRU File Open and Regular File Open 
Author Message
 Difference between MRU File Open and Regular File Open


When I open up a Document using the "File Open", I get a Debug Assertion,
where X & Y =0.
When I open up a Document using "MRU File Open", The X & Y coordinates are
what they are supposed to be,
the way I set them in PreCreateWindow().

Each option, uses the PreCreateWindow(CREATESTRUCT& cs).

I set X & Y, but for some reason X & Y are getting lost when using "File

I can choose to ignore the Assertion and continue as if nothing happened.
(Never been able to do that before)

CSize CDC::SetWindowExt(int x, int y)
 CSize size;

 if (m_hDC != m_hAttribDC)
  VERIFY(::SetWindowExtEx(m_hDC, x, y, &size));
 if (m_hAttribDC != NULL)
  VERIFY(::SetWindowExtEx(m_hAttribDC, x, y, &size)); <--------This is where
the ASSERTION happens
 return size;


Thanks in advance,

Tue, 16 Dec 2003 22:23:22 GMT  
 [ 1 post ] 

 Relevant Pages 

1. can't open file: to many files open

2. How to force mru file to open?

3. Opening file from MRU

4. Help: Auto open the MRU file

5. Open File Dialog after MRU failure

6. MRU file open fails ?

7. Can HtmlHelp() open a regular HTML file???

8. Differences between fopen and open, etc accessing files

9. Problem opening a file for read while it is open for write

10. opening a file using open method

11. Problem with opening binary files using open()

12. CDaoDatabase::Open() will not open mdb file


Powered by phpBB® Forum Software