对话框中的按钮在以对话框形式生成时是可以的,但是在以coolbar生成时却没有显示出自画的按钮,改变整个mainfram的大小(比如最大化)时却显示了出来,按钮是在OnInitialDlg()中画的,请问问题出在哪里了.

解决方案 »

  1.   

    BS_OWNERDRAW   
    Creates an owner-drawn button. The framework calls the DrawItem member function when a visual aspect of the button has changed. This style must be set when using the CBitmapButton class.
    你是不是没有设这个style啊?
      

  2.   

    设置了以后也没反应,问题是我有其它的面板开始挡住拉这个面板不能显示,等到把其他面板showwindow(SW_HIDE),而将这个面板showwindow(sw_show)时,没有对整个界面刷新。以至于没有显示出
    怎么解决这个问题呢`
      

  3.   

    这个问题我已解决·原来需要用倒 RecalcLayout();进行窗口的位置重放