Menu

Change Color Of Button

2003-02-06
2012-09-26
  • Nobody/Anonymous

    Somebody tell me please what is the function of Win Api or way to change:
    - color
    -  text size and font ot button.

    Of a Control, for example check box or pushbutton.

    ...
    Other Topic
    how can change the BackGround color of a created Window.

    Sorry, my english is so poor!!!!!!!! :(
    Thank for all!!!!!

    ChoriGlobo

     
    • Nobody/Anonymous

      Search this Forum, MSDN, that win32.hlp file (its a dev package) or even Google for the following:

      CreateFont
      WM_SETFONT

      WM_PAINT
      WM_DRAWITEM
      WM_CTLCOLORSTATIC
      WM_CTLCOLOREDIT
      WM_CTLCOLORBTN
      WM_CTLCOLORGLG
      WM_CTLCOLORSCROLLBAR
      WM_CTLCOLORLISTBOX
      ChooseColor
      SetBkColor
      SetBkMode
      SetTextColor
      CreateBrushIndirect
      BeginPaint
      EndPaint
      FillRect

      If youre familiar with all them youll be able to change the color of anything in your programs from now on.

       
    • Nobody/Anonymous

      Note that for changing Text and Background color of a PUSHBUTTON youll have to use Owner Drawn Buttons (search msdn on that).

      For CheckBoxes TEXT color and TEXT BG color, you can intercept WM_CTLCOLORSTATIC.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.