comctl32

Excessive memory usage by comctl32.dll when a checkbox control's Visible becomes true

随声附和 提交于 2019-12-05 19:31:33
I am adding controls to a Windows Form during runtime in a C# .NET application. Each of these controls interacts with a particular signal and uses some data from that signal -- signal name, description, source, units, value, etc. These controls have a check box on them. When the Visible property of the checkbox of just one of these signals becomes true, my application's Committed memory jumps over 800MB. None of the other hundreds of signals have the problem. I used the DebugDiag tool to learn that comctl32.dll is allocating 805.45 MBytes. In particular: Function comctl32_72380000

How to enable modern look and feel of tool bar for Win32 Application?

强颜欢笑 提交于 2019-12-04 13:55:25
问题 Recently I started learning GUI programming based on Win32 API. When I add tool bar control (from comctl32.lib ) to my simple application I find it looks flat while the menu bar has more "Windows 7 friendly" 3D look and feel (white glow at the top and vertical gray gradient from top to bottom). The difference makes it look wired. However, I find many other applications have consistent look and feel for both menu bar and tool bar. Eg. Notepad++ and Notepad 2. I've read some official documents

C#: comctl32.dll version 6 in debugger

无人久伴 提交于 2019-12-03 07:14:05
I'm using the WindowsAPICodePack for TaskDialog. When I try to show the dialog it says that it needs to load version 6 of comctl32.dll. So I added version 6 to the app.manifest and tried running it. Still no luck. I went to the Debug folder and ran the program without Visual Studio and it works fine. I'm guessing that Visual Studio isn't using the manifest file... I was wondering if there was a way to make it do this. Robpol86, your code is throwing SEHExceptions, because the signatures for ActivateActCtx and DeactivateActCtx are not correct. You have to use UIntPtr instead of uint for the

ListView multiple selection behavior?

纵饮孤独 提交于 2019-12-02 18:34:57
问题 The ListView in Comtl32.dll v6.0 does multiple selection (when using Shift key) as follows (x means selected) 00xxxx xxxxxx xxxx00 Earlier versions of ListView do it as follows : 00xx00 00xx00 00xx00 Is there any way to have it do the first way (the comctl32 v6.0 way)? Thanks John 回答1: The short answer is no. But because that seems incomplete... The ListView does not expose an API that allows you to change its selection behavior, and as Hans obliquely puts it in his comment, the only way to

ListView multiple selection behavior?

不打扰是莪最后的温柔 提交于 2019-12-02 09:52:00
The ListView in Comtl32.dll v6.0 does multiple selection (when using Shift key) as follows (x means selected) 00xxxx xxxxxx xxxx00 Earlier versions of ListView do it as follows : 00xx00 00xx00 00xx00 Is there any way to have it do the first way (the comctl32 v6.0 way)? Thanks John The short answer is no. But because that seems incomplete... The ListView does not expose an API that allows you to change its selection behavior, and as Hans obliquely puts it in his comment, the only way to change the behavior of the ListView control found in versions of comctl32.dll prior to version 6.0 is with a

How to enable visual styles without a manifest

元气小坏坏 提交于 2019-11-27 08:27:09
According to the docs : "If you want your application to use ComCtl32.dll version 6, you must add an application manifest or compiler directive to specify that version 6 should be used if it is available." Notice the logical OR above? So what is this mysterious compiler directive? I've got a native Win32 C++ application that is wholly contained in a single .cpp file. There are no resource files, manifest files, etc. I'd like to keep it that way, but I would also like to use visual styles. If you're using Visual Studio, you can add this line to your stdafx.cpp for example: #pragma comment

How to enable visual styles without a manifest

梦想的初衷 提交于 2019-11-26 14:08:46
问题 According to the docs: "If you want your application to use ComCtl32.dll version 6, you must add an application manifest or compiler directive to specify that version 6 should be used if it is available." Notice the logical OR above? So what is this mysterious compiler directive? I've got a native Win32 C++ application that is wholly contained in a single .cpp file. There are no resource files, manifest files, etc. I'd like to keep it that way, but I would also like to use visual styles. 回答1: