![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
win32
trustnature
一心向善
展开
-
一个简单的win32程序
要实现窗口居中显示并不难,只要在窗体创建的时候我们设置窗口的位置就可以了.在这里我们主要用到3个API函数,分别是:GetSysMetrics,GetWindowRect,SetWindowPos. 我们用GetSysMetrics来获的屏幕的宽度和高度,然后用GetWindowRect来获取窗口的坐标.通过运算后计算出居中窗口的位置,最后用SetWindowPos来设置窗体的位置.整个过程就是原创 2012-07-31 12:55:56 · 318 阅读 · 0 评论 -
界面颜色改变 对话框 win32程序
#include #include #include"resource.h" HINSTANCE hins; HWND hwndGoto = NULL;// Window handle of dialog box LRESULT CALLBACK wndporc( HWND hwnd, // handle to window UINT uMsg, /原创 2012-07-31 14:39:58 · 1292 阅读 · 0 评论 -
win32 关于对话框
Using Dialog Boxes You use dialog boxes to display information and prompt for input from the user. Your application loads and initializes the dialog box, processes user input, and destroys the dial转载 2012-07-31 14:36:34 · 526 阅读 · 0 评论 -
C++注册表编程(未完善)
转载:http://blog.163.com/rao_warrior/blog/static/13780161620117754630235/ Win 95及NT的注册数据库(Registry)是系统中非常重要的组成部分。在Win32API中有一组Reg函数来处理这些问题。其一般的读写过程如下: 1、使用RegOpenKeyEx或RegCreateKeyEx函数打开或创建一个键转载 2012-10-19 13:59:06 · 2360 阅读 · 0 评论