现在不再创建并设置新窗口,而是把Gtk . window类放进一个子类,并把所有设置代码移动到构造函数。
Instead of creating a new window and setting it up, you put the Gtk.Window class into a subclass and move all setup code into a constructor.
为了启动对象,你必须首先建立一个父脚本(类)然后调用消息窗口来运行构造函数。
To start the object, you must create a parent script (class) first and then run the constructor call from the message window.
通过用“属性”窗口定义消息和事件处理函数,可以自动更新消息调度表(或消息映射)和类的头文件。
By using the Properties window to define message - and event-handling functions, you can automatically update the message-dispatch table (or message map) and your class header file.
在使用createwindowex函数生成窗口时,这个类与普通的控件类很相似。
The class is similar to common control classes in that you create a window of this class by using the CreateWindowEx function.
在使用createwindowex函数生成窗口时,这个类与普通的控件类很相似。
The class is similar to common control classes in that you create a window of this class by using the CreateWindowEx function.
应用推荐