//编写函数,将一个数的指定位置置0或置1 #include <stdio.h> unsigned int set_bit(unsigned int num, int pos, int flag) { int n = 1; n = n << (pos - 1); //将n的第pos位置1,其它全为0 if (flag == 0) { num = num&(~n); } else if (flag == 1) { num = num | n; } else printf(&q…
来源:http://www.360doc.com/content/09/0814/10/19147_4907488.shtml,非常全面的解释. 文本框控件通常用于输入和编辑文字.它属于标准 Windows 编辑控件的一个子类,所以它支持所有编辑控件消息.这儿讲述的技术也适用于由其他厂商设计的,以Windows编辑控件类为基础的其他控件. 函数原型: Declare Function SendMessage Lib "user32" Alias "SendMessageA&q…