用户回调(MFC)时的异常

时间:2016-07-18 11:51:38

标签: c++ windows-7 mfc windows-10

我有一个带有此标题的函数

 void LiveviewDlg::OnSize(UINT nType, int cx, int cy)

在这个函数中,我计算了控件的一些坐标。我用这个

CRect rect;
GetWindowRect(&rect);

从我的MFC控件中获取一些值。行后

GetDlgItem(IDSTART)->MoveWindow(dialogWidth - 120, 0, 100, 50);

我得到了例外

Unhandled exception at 0x5DBA4F14 (mfc120ud.dll) in Liveview.exe: 0xC000041D: Exception while user callback (translated from german to english)

在我的Windows 7系统上,我的程序运行正常。在我的Windows 10系统上,我得到了例外。我不知道,为什么会抛出这个异常。

0 个答案:

没有答案