码迷,mamicode.com
首页 >  
搜索关键字:hwnd    ( 761个结果
WS_TABSTOP 与 BS_DEFPUSHBUTTON 第一次使有
关于 WS_TABSTOP,我一直没搞明白,为何加了 WS_TABSTOP ,当按下 Tab 键时,窗口中的控件还是不能自动的切换焦点。 为何 SetFocus(hwnd); 后,虽然按钮已获得焦点,但焦点的虚线框不显示。 关于 BS_DEFPUSHBUTTON,为何加了,在窗体上按下【回车】什么反 ...
分类:其他好文   时间:2018-08-03 22:35:14    阅读次数:148
【转】C# 调用 C++ 数据转换
原文:https://www.cnblogs.com/82767136/articles/2517457.html 在合作开发时,C#时常需要调用C++DLL,当传递参数时时常遇到问题,尤其是传递和返回字符串是,现总结一下,分享给大家: VC++中主要字符串类型为:LPSTR,LPCSTR, LPC ...
分类:编程语言   时间:2018-07-27 19:20:47    阅读次数:187
windows api 文本输出(一)
恢复内容开始 一,绘制与重绘 1,windows不会保留窗口内容,当窗口被覆盖然后恢复时,Windows会发送WM_PAINT消息通知窗口过程重绘客户区(窗口中没有被标题栏,菜单栏,工具栏,状态栏遮住的地方,可以自由绘制),使用函数 GetClientRect(hwnd, &rect);可获得客户区 ...
分类:Windows程序   时间:2018-07-27 19:19:32    阅读次数:201
1.3 Writing the Window Procedure(编写窗口过程)
编写窗口过程(Writing the Window Procedure) DispatchMessage函数调用作为消息目标窗口的窗口过程。窗口过程具有以下签名(signature)。 C++ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPA ...
分类:Windows程序   时间:2018-07-26 13:06:45    阅读次数:215
C# winform实现右下角弹出窗口结果的方法
using System.Runtime.InteropServices; [DllImport("user32")] private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags); //下面是可用的常量 ...
分类:Windows程序   时间:2018-07-24 11:13:04    阅读次数:183
C# enable为false时不变颜色
1 [System.Runtime.InteropServices.DllImport("user32.dll ")] 2 public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int wndproc); 3 [System.... ...
分类:Windows程序   时间:2018-07-22 11:34:00    阅读次数:602
15 Windows编程——系统内置窗口子类型之button
button子类型BS_3STATE、BS_AUTO3STATE、BS_AUTOCHECKBOX 源码 1 #include<Windows.h> 2 #include<Windowsx.h> 3 4 LRESULT CALLBACK WindProc(HWND hwnd, UINT message ...
分类:Windows程序   时间:2018-07-20 20:08:31    阅读次数:431
08 Windows编程——画图
源码 1 #include<Windows.h> 2 #include<tchar.h> 3 #include<stdio.h> 4 #define NUM 1000 5 6 LRESULT CALLBACK WindProc(HWND hwnd, UINT message, WPARAM wPar ...
分类:Windows程序   时间:2018-07-15 23:14:19    阅读次数:251
05 Windows编程——Windows程序框架
源码 1 #include<Windows.h> 2 3 LRESULT CALLBACK WindProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); 4 5 int WinMain(HINSTANCE hInst, HINSTA ...
分类:Windows程序   时间:2018-07-12 17:59:21    阅读次数:213
进程间窗口广播消息
HWND_BROADCAST可以在窗口之间广播消息在MSDN中的描述:The message is posted to all top-level windows in the system, including disabled or invisible unowned windows, over ...
分类:系统相关   时间:2018-07-06 13:06:30    阅读次数:192
761条   上一页 1 ... 12 13 14 15 16 ... 77 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!