请问我使用SetWindowPos的问题?
菜梗子 2002-05-18 10:33:56 我在View中的OnSize事件中使用SetWindowPos方法时,语句如下:
m_map.SetWindowPos(&wndBottom,0,0,cx,cy,SWP_SHOWWINDOW),其中m_map是一个
MapObject2.1,它是一个ActiveX控件,我Frame的框架使用的是MDI,这样它总是报
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!
Program: D:\vc_project\mmap\Debug\mmap.exe
File: winocc.cpp
Line: 290
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
---------------------------
终止(A) 重试(R) 忽略(I)
---------------------------
但如果我是在SDI中的话,这条语句没有问题,请问这如何解决?