Archives for: December 2009, 28
当你在按钮上按下鼠标左键,然后移出按钮范围.......
December 28th, 2009当你在按钮上按下鼠标左键不松开,然后移出按钮范围,按钮将从按下状态恢复原状,但是如果将鼠标移回,按钮会变回按下状态。
How to draw a button in win32
December 28th, 2009In windows, I found 3 ways to draw a button:
Using DrawEdge and FillRect
Using GetSysColor() to get need color.
Using DrawFrameControl
Using Theme-Aware API
using gmake in win32 programming
December 28th, 2009I decide to use make in win32. First, I try to use NMake, and found a good manual for it: http://web.sau.edu/lilliskevinm/csci240/masmdocs/envtools/26LMAETC16.pdf and http://c2.com/cgi-bin/wiki?UsingNmake.
But in a second thought, I think why I don't use gnumake, I am more familiar with it. There are two major concerns about it:
1, Path seperator
2, Command line length.
I do some google, and found that question 1 has been fixed in special edition for win32 make.
For question 2, I do a little test, write a makefile and echo a big string which contains about 400 bytes. It seems ok. So I decide to try this solution first.