大约有 40,000 项符合查询结果(耗时:0.0250秒) [XML]
ActionBar 拓展:溢出菜单 - App Inventor 2 拓展 - 清泛IT社区,为创新赋能!
...p Inventor 提供了两个关键事件来操作右上角菜单:
1. 当屏幕创建菜单时:Screen.Initialize 或 Screen.CreateOptionsMenu
在这里你可以添加菜单项。
2. 当用户点击菜单项时:Screen.ItemSelected
在这里判断点击的是哪个菜单项,并执行对应...
在 App Inventor 2 中使用图像 · App Inventor 2 中文网
...rent releases of MIT App Inventor you can set the “Sizing” property on Screen1 to either “Responsive” or “Fixed” (with “Fixed” being the default for new projects and older projects that automatically get upgraded). Fixed mode attempts to emulate the old API 3 compatibility mode behav...
C++/COM VARIANT实现二维数组 - C/C++ - 清泛网 - 专注C/C++及内核技术
...T变量把SAFEARRAY进行包装。
使用SAFEARRAR实现二维数组的源代码如下:
VARTYPE vt = VT_I4; /*数组元素的类型,long*/
SAFEARRAYBOUND sab[2]; /*用于定义数组的维数和下标的起始值*/
sab[0].cElements = 2;
sab[0].lLbound = 0;
sab[1]....
MFC 设置控件字体,颜色,大小,粗体,下划线等 - C/C++ - 清泛网 - 专注C/...
MFC 设置控件字体,颜色,大小,粗体,下划线等参考代码:CFont *f = new CFont; f->CreateFont(16, nHeight 0, nWidth ...参考代码:
CFont *f = new CFont;
f->CreateFont(16, // nHeight
0, // nWidth
0, // nEsca...
GetNextDlgTabItem用法详解,回车替代Tab键切换控件焦点 - C/C++ - 清泛网 ...
...es the window's children
回车替代Tab键切换控件焦点,部分代码如下:
BOOL Cxxx::PreTranslateMessage(MSG* pMsg)
{
// TODO: 在此添加专用代码和/或调用基类
UINT nKeyCode = pMsg->wParam;
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN)
{
CWn...
c++11 智能指针回调的经典场景 - C/C++ - 清泛网 - 专注C/C++及内核技术
...不确定原对象是否已经释放,这时必须使用智能指针了,代码如下: includ c++11 智能指针回调经典测试案例,当回调函数需要使用原对象指针时不确定原对象是否已经释放,这时必须使用智能指针了,代码如下:
#include <iostre...
一款IP:端口监控工具 服务器端口监控工具[附源码] - C++ UI - 清泛IT社区...
...p://www.tsingfun.com/html/2016/soft_0602/74.html
源码下载:
主要代码请参考:《mfc telnet 端口,代码实现、不调用telnet.exe》
表格采用GridCtrl(Demo源码):《MFC Grid control 2.27》
SHFileOperation 这个API函数怎么用起来结果飘忽不定? - c++1y / stl - 清...
...决:
改用C++的FindNextFile,支持 * 通配符查找文件,核心代码如下:
WIN32_FIND_DATA FindFileData;
char szCurPath[MAX_PATH + 1] = { 0 };
GetCurrentDirectory(MAX_PATH, szCurPath);
CString findFileName;
findFileName.Format("%stest*.txt", szCurPath);
HANDLE hFind = ::Fin...
MFC 设置控件字体,颜色,大小,粗体,下划线等 - C++ UI - 清泛IT社区,为...
参考代码:CFont *f = new CFont;
f->CreateFont(16, // nHeight
0, // nWidth
0, // nEscapement
 ...
libunwind:记录程序崩溃堆栈 - 开源 & Github - 清泛网 - 专注C/C++及内核技术
...装了,暂时先通过包管理器安装:apt-get install libunwinddemo代码如下:项目地址:https://github.com/libunwind/libunwind
源码编译安装:
git clone https://github.com/libunwind/libunwind
cd libunwind
./autogen.sh
./configure --prefix=/usr --enable-shared #编译...