From MSDN:
Use the SetClassLong function with care. For example, it is possible to change the background color for a class by using SetClassLong, but this change does not immediately repaint all windows belonging to the class加一句:InvalidateRect(GetSafeHwnd(), NULL, TRUE);试试?

解决方案 »

  1.   

    不行的,伙计,我虽然没加,但我把它最小化再最大化,没有丝毫改变。我只是想改变模态对话框的固有属性,因为我想在WM_CREATE消息里改变背景,这样我想只用把对话框上的控件的属性设为透明的就能够达到透明的效果(我认为只设控件的属性不能达到透明的原因可能与对话框的固有背景有关,也不知对不对)。to in355hz:Thank you very much.