W wzs4743 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-06 #1 什么时间用application.handle 什么时间用hinstance
P Pipi. Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-07 #2 不一样的东西,application.handle 是 HWND 窗口句柄,涉及到窗口,你看api里面类型是HWND的才可以用 hinstance是实例句柄,实际是代码段装入的地址, 在类型为 HINSTANCE 或者 HMODULE 的参数中使用
不一样的东西,application.handle 是 HWND 窗口句柄,涉及到窗口,你看api里面类型是HWND的才可以用 hinstance是实例句柄,实际是代码段装入的地址, 在类型为 HINSTANCE 或者 HMODULE 的参数中使用
S savenight Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-07 #3 HInstance: The handle provided by Windows for a module. Application.Handle:The handle Provides access to the window handle of the main form (window) of the application
HInstance: The handle provided by Windows for a module. Application.Handle:The handle Provides access to the window handle of the main form (window) of the application
W wzs4743 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-07 #4 pipi:那么在访问一个窗体时,用form1.handle不就行了吗? 而且假设form1是主窗体,application.handle<>form1.handle
P Pipi. Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-07 #5 是的,form1.handle才是你看得见的主窗口的 HWND 但是任务栏上的标题栏所属的窗口是 application.handle