对话方块(八十二)
cc.hInstance = NULL ;
cc.rgbResult = RGB (0x80, 0x80, 0x80) ;
cc.lpCustColors = crCustColors ;
cc.Flags = CC_RGBINIT | CC_FULLOPEN ;
cc.lCustData = 0 ;
cc.lpfnHook = NULL ;
cc.lpTemplateName = NULL ;
return ChooseColor (&cc) ;
}
| 图11-7 COLORS3的萤幕显示 |
您也可以在自己程式的对话方块中使用这种技巧。使Windows程式只建立对话方块,其他事情都在对话方块程序中完成,这是可能的。
