910930 - 如何更改属性页面大小? [英] 910930 - how to change property page size?

查看:95
本文介绍了910930 - 如何更改属性页面大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


查看以下属性表:

[ ^ ]

属性页面是从大小为2x2的资源模板创建的!似乎属性页的大小不能小于特殊值。换句话说,宽度和高度的最小尺寸,属性页面的尺寸不能小于它,如果是这样的话,它们会被调整到这些值。



i需要覆盖此行为。我需要知道如何更改属性页的大小。我需要一个属性表,其中包含一些页面,每个页面可能有自己的大小,我需要根据需要在其中显示的位图调整属性页面大小。属性表还需要遵循页面的大小。我发现属性表的宽度是其属性页的宽度+ 26,属性表'的高度是其属性页的高度+ 101像素。我不知道这些值是否在所有外观和所有平台上都是恒定的。我不知道如何在程序内部动态找到它们。



我已经尝试过SetWindowPos作为属性表,它运行正常,但它没有不适用于属性页面。



我也尝试使用足够大的属性页面资源模板,例如。尺寸为600x600。但我也不能改变那个属性页面的大小。在创建属性表之后,它似乎是不变的并且以后不能更改。



请帮我改变我的属性表页面的内容程序到我需要的值。



thx

hi
look at the following property sheet:
[^]
the property page is created from a resource template with size 2x2! it seems that a property page can''t have size less than a special value. in another words there''s a minimum size in width and height which the dimensions of a property page can''t be less than it and if it''s the case they''re adjusted to these values.

i need to override this behavior. i need to know how can i change a property page''s size. i need to have a property sheet with some pages each of which may have its own size and i need to adjust the property page size based on the bitmap which is required to be shown inside of it. the property sheet also needed to follow the page''s size. i''ve found that a property sheet''s width is its property page''s width+26 and a property sheet''s height is its property page''s height+101 pixels. i don''t know whether these values are constant in all appearances and all platforms. i don''t know how to find them dynamically inside the program itself.

i''ve tried SetWindowPos for the property sheet and it works properly, but it doesn''t work for the property page.

i''ve also tried using a big enough property page resource template, eg. with 600x600 dimensions. but i can''t change that property page''s size too. it seems to be constant and can''t be changed later, after property sheet is created.

please help me change my property sheet''s pages from inside the program to the values i need.

thx

推荐答案

你需要找到一个属性或函数你可以改变或覆盖的类;检查文档 [ ^ ]看看它是否可行。如果没有这样的功能,那么你可能需要研究子类化 [ ^ ]控件。
You need to find a property or function in the class that you can change or override; check the documentation[^] to see if it''s possible. If such a feature is not available then you probably need to look into the possibility of subclassing[^] the control.


这篇关于910930 - 如何更改属性页面大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆