恒
恒翔
Unregistered / Unconfirmed
GUEST, unregistred user!
程序中添加,下面这段代码:
procedure TMainForm.CreateWnd;
begin
inherited;
// Turn the ClientWndProc method into a valid window procedure
FNewClientProc := MakeObjectInstance(ClientWndProc);
// Get a pointer to the original window procedure
FOldClientProc := Pointer(GetWindowLong(ClientHandle, GWL_WNDPROC));
// Set ClientWndProc as the new window procedure
SetWindowLong(ClientHandle, GWL_WNDPROC, LongInt(FNewClientProc));
end;
再打开MDIChild窗体时,系统报错:
A call to an OS function failed!各位老大,这个问题怎么解决阿?
procedure TMainForm.CreateWnd;
begin
inherited;
// Turn the ClientWndProc method into a valid window procedure
FNewClientProc := MakeObjectInstance(ClientWndProc);
// Get a pointer to the original window procedure
FOldClientProc := Pointer(GetWindowLong(ClientHandle, GWL_WNDPROC));
// Set ClientWndProc as the new window procedure
SetWindowLong(ClientHandle, GWL_WNDPROC, LongInt(FNewClientProc));
end;
再打开MDIChild窗体时,系统报错:
A call to an OS function failed!各位老大,这个问题怎么解决阿?