English 中文(简体)
2. 计算工具路障
原标题:Calculating toolbar icon width
  • 时间:2010-06-16 15:29:13
  •  标签:
  • c++
  • mfc

我正在建造一个无线电台的客户,我有显示运行应用程序的工具障碍,与Windows工具bar一样。 我需要支持双重监测员,因此我的问题是:1)我如何发现有一个以上监测员,2) 是否有计算工具棒上ons的公式?

我知道,从一开始,宽度并不取决于监测员人数,而且总规模相同。 确实变化的是,在我必须开始“缩小”其宽度之前,我可以展示的微粒数量,这也将取决于屏幕的解决。

任何想法?

问题回答

Answering 1) - There is the EnumDisplayMonitors function. Now regarding 2) - What do you mean with "like the windows toolbar"? If you mean something similar to the taskbar then I guess it mainly depends on what icon sizes you want to use. All the standard application icons usually supply icon sizes of 16x16, 24x24, 32x32, 48x48 and so on. There s no universal formula - you know how much width you have available, and then you decide on which icon size to use. But keep in mind that you eventually will run out of space no matter how small the icon, so perhaps you should think of adding some sort of scroll button. Hope that helps.





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签