| 发表于:2007-06-23 12:12:03 楼主 |
窗口活动时窗口背景色为红色,不活动时窗口背景色为灰色: private sub form_load() bcancel = false me.visible = true processwindow end sub private sub form_unload(cancel as integer) bcancel = true end sub private sub processwindow() do while not bcancel n = iswindowenabled(me.hwnd) if n <> 0 then me.backcolor = vbred else me.backcolor = &h8000000f end if doevents loop end sub 结果无效.. 请说明原因,谢谢 |
|
|
|
|