怎么样在编程动态创建Static时,设置static的Client Edge(资源编辑器中可以设)等属性,
查了MSDN,没看到有这个。
谢了.

解决方案 »

  1.   

    example:
    ModifyStyle(0,SS_NOPREFIX);]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_static_styles.asp
      

  2.   

    to: laiyiling(【壮志雄心】) 兄好像不对吧,我要的是Client Edge属性(中间下陷,像个Readonly Edit的那种).SS_NOPREFIX的说明是这样的啊:
    SS_NOPREFIX   Unless this style is specified, Windows will interpret any ampersand (&) characters in the control's text to be accelerator prefix characters. In this case, the ampersand is removed and the next character in the string is underlined. If a static control is to contain text where this feature is not wanted, SS_NOPREFIX may be added. This static-control style may be included with any of the defined static controls. You can combine SS_NOPREFIX with other styles by using the bitwise OR operator. This is most often used when filenames or other strings that may contain an ampersand need to be displayed in a static control in a dialog box.