Prev: a new font
Next: lock one resource in win32 + asm
From: greenfish on 19 Apr 2010 05:08 http://wjswlsvy.v3webhard.com/btn_border.bmp shows the ugly button boder. (the background color of CMainFrame is RGB(128,128,128).) i can not display the border and edge of it as transparent. can it be possible to set edge and boder color of CButton???
From: ScottMcP [MVP] on 19 Apr 2010 10:31 On Apr 19, 5:08 am, greenfish <greenfis...(a)gmail.com> wrote: > http://wjswlsvy.v3webhard.com/btn_border.bmp > shows the ugly button boder. > (the background color of CMainFrame is RGB(128,128,128).) > > i can not display the border and edge of it as transparent. > > can it be possible to set edge and boder color of CButton??? You can make a button owner drawn and paint it any way you like. There are numerous examples of owner-drawn buttons at codeguru and codeproject. MFC also has the CBitmapButton class, which is an example of owner drawn.
|
Pages: 1 Prev: a new font Next: lock one resource in win32 + asm |