F
flyapple
Unregistered / Unconfirmed
GUEST, unregistred user!
1. 问题-->>>在一本书中有如下一边文章:
"When you are playing back fairly large metafiles, you can sometimes see the shapes being painted to the screen one at a time. This helps to illustrate the fact that metafiles are literally just lists of GDI calls with their related parameters and device contexts carefully preserved. There are calls available that enable you to walk through these lists and delete or modify individual items"
问题也就来了,当我在TMetafileCanvas对象中画完了一个圆,一条线...后,
能否在程序后对已画完的对象再次修改????
2. 问题-->>>如何使设置的窗口系统按钮立即有效.
我希望在程序中动态的使得窗口系统按钮有效/无效,我采用的方法如下:
在ButtonClicked中,程序如下:
HMENU menu = GetSystemMenu(Handle,false);
DeleteMenu(menu,SC_CLOSE,MF_COMMAND);
虽然系统关闭按钮已无效了,可是窗口还是没有刷新,即系统关闭按钮外表看还是有效的,我只有手工移动/改变窗口,才让系统刷新.我用了几种方法都无效:
1.(Invalidate),2.(InvalidateRect),3.(SendMessage(Handle,WM_PAINT,
0,0)).....
3. 问题-->>>如何使用BorderIcons?
我希望动态的使得系统窗口按钮无效,用的如下代码,(copy from help)
开始时BorderIcons,使用的是系统缺省值.
BorderIcons = BorderIcons - (TBorderIcons()<< biMaximize);
但是程序执行完后,窗口所有的窗口按钮都没有了,why???
"When you are playing back fairly large metafiles, you can sometimes see the shapes being painted to the screen one at a time. This helps to illustrate the fact that metafiles are literally just lists of GDI calls with their related parameters and device contexts carefully preserved. There are calls available that enable you to walk through these lists and delete or modify individual items"
问题也就来了,当我在TMetafileCanvas对象中画完了一个圆,一条线...后,
能否在程序后对已画完的对象再次修改????
2. 问题-->>>如何使设置的窗口系统按钮立即有效.
我希望在程序中动态的使得窗口系统按钮有效/无效,我采用的方法如下:
在ButtonClicked中,程序如下:
HMENU menu = GetSystemMenu(Handle,false);
DeleteMenu(menu,SC_CLOSE,MF_COMMAND);
虽然系统关闭按钮已无效了,可是窗口还是没有刷新,即系统关闭按钮外表看还是有效的,我只有手工移动/改变窗口,才让系统刷新.我用了几种方法都无效:
1.(Invalidate),2.(InvalidateRect),3.(SendMessage(Handle,WM_PAINT,
0,0)).....
3. 问题-->>>如何使用BorderIcons?
我希望动态的使得系统窗口按钮无效,用的如下代码,(copy from help)
开始时BorderIcons,使用的是系统缺省值.
BorderIcons = BorderIcons - (TBorderIcons()<< biMaximize);
但是程序执行完后,窗口所有的窗口按钮都没有了,why???