![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
windows
yebanghua
这个作者很懒,什么都没留下…
展开
-
《windows 程序设计》第九章 一个迷惑解答
终于把《windows 程序设计》看了三百多页(三分之一),在看《windows 程序设计》第九章时, HEAD程序代码中有个疑问,具体问题如下:代码为: szBuffer [lstrlen (szBuffer) - 1] = '/0' ; // If setting the directory doesn't work, maybe it's // a drive change, so try t原创 2011-05-20 02:02:00 · 1197 阅读 · 3 评论 -
(HBRUSH)(COLOR_WINDOW+1)等同GetSysColorBrush(COLOR_WINDOW)
<br /> Windows requires that you add 1 when you use these identifiers and are specifying them in the hbrBackground field of the WNDCLASS structure, but doing so has no profound purpose other than to prevent the value from being NULL. <br />--摘原创 2011-05-26 01:05:00 · 2585 阅读 · 1 评论 -
BeginPaint和GetDC的区别
<br />这是个windows编程问题。 <br />第一种情况显示出来的字很正常。 <br />case WM_PAINT: <br /> gdc = BeginPaint (hwnd, &ps); <br /> TextOut (gdc, 0, 0, s, strlen (s)); <br /> EndPaint (hwnd, &ps); <br />break; <br />第二种情况显示的字不停闪烁。 <转载 2011-05-24 22:02:00 · 695 阅读 · 0 评论 -
【win32】MM_ISOTROPIC映射模式注意几点
1.MM_ISOTROPIC是保证了视口与窗口之间x,y轴同比例.例如:xViewExt是视口水平范围,yViewExt是视口垂直范围,xWinExt是窗口水平范围,yWinExt是窗口垂直范围,那么在MM_ISOTROPIC模式到:xWinExt/xViewExt与yWinExt/yViewExt比值总是一样的,2.当调用了SetWindowExt(),SetViewportExt()方法时,逻原创 2011-06-20 22:50:00 · 1273 阅读 · 1 评论