Label扩展样式没有更改字体大小的啊??怎么更改字体大小?
Default/forced $GUI_SS_DEFAULT_LABEL, $GUI_SS_DEFAULT_ICON, $GUI_SS_DEFAULT_PIC see GUICtrlCreateLabel, GUICtrlCreateIcon, GUICtrlCreatePic functions.$SS_BLACKFRAME 0x07 Specifies a box with a frame drawn in the same color as the window frames. This color is black in the default color scheme.
$SS_BLACKRECT 0x04 Specifies a rectangle filled with the current window frame color. This color is black in the default color scheme.
$SS_CENTER 0x01 Specifies a simple rectangle and centers the error value text in the rectangle. The control automatically wraps words that extend past the end of a line to the beginning of the next centered line.
$SS_CENTERIMAGE 0x0200 Specifies that the midpoint of a static control with the SS_BITMAP style will remain fixed when you resize the control. The four sides are adjusted to accommodate a new bitmap. If the bitmap is smaller than the control's client area, the rest of the client area is filled with the color of the pixel in the upper-left corner of the bitmap. It can be used with static control having only one line of text.
Microsoft Windows XP: This style bit no longer results in unused portions of the control being filled with the color of the top left pixel of the bitmap or icon. Unused portions of the control will remain the background color.
$SS_ETCHEDFRAME 0x12 Draws the frame of the static control using the EDGE_ETCHED edge style.
$SS_ETCHEDHORZ 0x10 Draws the top and bottom edges of the static control using the EDGE_ETCHED edge style.
$SS_ETCHEDVERT 0x11 Draws the left and right edges of the static control using the EDGE_ETCHED edge style.
$SS_GRAYFRAME 0x08 Specifies a box with a frame drawn with the same color as the screen background (desktop). This color is gray in the default color scheme
$SS_GRAYRECT 0x05 Specifies a rectangle filled with the current screen background color. This color is gray in the default color scheme.
$SS_LEFT 0x0000 Specifies a simple rectangle and left-aligns the text in the rectangle. The text is formatted before it is displayed. Words that extend past the end of a line are automatically wrapped to the beginning of the next left-aligned line. Words that are longer than the width of the control are truncated.
$SS_LEFTNOWORDWRAP 0x0C Specifies a rectangle and left-aligns the text in the rectangle. Tabs are expanded, but words are not wrapped. Text that extends past the end of a line is clipped.
$SS_NOPREFIX 0x80 Prevents interpretation of any ampersand (&) characters in the control's text as accelerator prefix characters.
An application can combine SS_NOPREFIX with other styles by using the bitwise OR (|) operator. This can be useful when file names or other strings that might contain an ampersand (&) must be displayed within a static control in a dialog box.
$SS_NOTIFY 0x0100 Sends 本帖最后由 hnfeng 于 2015-1-5 09:32 编辑
$Label6 = GUICtrlCreateLabel("xxxxx", 375, 348, 125, 17, $SS_CENTER)
GUICtrlSetFont(-1, 11, 400, 0, "Courier New");第二个参数就是字体大小 回复 2# hnfeng
好。解决了问题。。。。
页:
[1]