August 28th Tuesday (八月 二十八日 火曜日)
来源:互联网 发布:网络销售 电话流程 编辑:程序博客网 时间:2024/05/01 21:45
wxAppDerivedClass& wxGetApp()
This function doesn't exist in wxWidgets but it is created by using the IMPLEMENT_APP macro. Thus, before using it anywhere but in
the same module where this macro is used, you must make it available using DECLARE_APP.
The advantage of using this function compared to directly using the global wxTheApp pointer is that the latter is of type wxApp *
and so wouldn't allow you to access the functions specific to your application class but not present in wxApp while wxGetApp() returns
the object of the right type.
DECLARE_APP(className)
This is used in headers to create a forward declaration of the wxGetApp function implemented by IMPLEMENT_APP. It creates the declaration
className& wxGetApp(void).
Example:
DECLARE_APP(MyApp)
Include files
<wx/app.h>
IMPLEMENT_APP(className)
This is used in the application class implementation file to make the application class known to wxWidgets for dynamic construction.
You use this instead of
Example:
IMPLEMENT_APP(MyApp)
This function doesn't exist in wxWidgets but it is created by using the IMPLEMENT_APP macro. Thus, before using it anywhere but in
the same module where this macro is used, you must make it available using DECLARE_APP.
The advantage of using this function compared to directly using the global wxTheApp pointer is that the latter is of type wxApp *
and so wouldn't allow you to access the functions specific to your application class but not present in wxApp while wxGetApp() returns
the object of the right type.
DECLARE_APP(className)
This is used in headers to create a forward declaration of the wxGetApp function implemented by IMPLEMENT_APP. It creates the declaration
className& wxGetApp(void).
Example:
DECLARE_APP(MyApp)
Include files
<wx/app.h>
IMPLEMENT_APP(className)
This is used in the application class implementation file to make the application class known to wxWidgets for dynamic construction.
You use this instead of
Example:
IMPLEMENT_APP(MyApp)
- August 28th Tuesday (八月 二十八日 火曜日)
- August 21th Tuesday (八月 二十一日 火曜日)
- August 14th Tuesday (八月 十四日 火曜日)
- 2008 August 28th Thursday (八月 二十八日 木曜日)
- 2008 August 5th Tuesday (八月 五日 火曜日)
- 2008 August 26th Tuesday (八月 二十六日 火曜日)
- August 7th Tuesday (八月 七日 火曜日)
- 2008 October 28th Tuesday (十月 二十八日 火曜日)
- April 28th Tuesday (四月 二十八日 火曜日)
- July 28th Tuesday (七月 二十八日 火曜日)
- August 24th Friday (八月 二十四日 金曜日)
- 2008 August 12th Tuesday (八月 十二日 火曜日)
- 2008 August 19th Tuesday (八月 十九日 火曜日)
- 2008 August 18th Monday (八月 十八日 月曜日)
- May 28th Tuesday (五月 二十八日 木曜日)
- 2008 August 21th Thursday (八月 二十一日 木曜日)
- 2008 August 25th Monday (八月 二十五日 月曜日)
- September 18th Tuesday (九月 十八日 火曜日)
- DirectShow编程(3.2)- 关于DirectShow - Filter Graph和它的组件
- August 24th Friday (八月 二十四日 金曜日)
- N 皇后问题
- August 27th Monday (八月 二十七日 月曜日)
- DirectShow编程(3.3)- 关于DirectShow - 构建Filter Graph
- August 28th Tuesday (八月 二十八日 火曜日)
- 什么是极限编程
- DirectShow编程(3.4) - 关于DirectShow - Filter Graph中的数据流
- August 30th Thursday (八月 三十日 木曜日)
- 用 JavaScript 操作字符串
- August 31th Friday (八月 三十一日 金曜日)
- DirectShow编程(3.5) - 关于DirectShow - DirectShow中的事件通告
- MD5简介
- C#源码学习之---监控文件系统