Questions tagged [comctl32]

Comctl32.dll - common controls library build-in Windows system.

Comctl32.dll - common controls library build-in Windows system.

Documentation:

-Docs

77 questions
2
votes
3 answers

Why does the TVM_GETITEM message fail on comctl32.ocx or mscomctl.ocx tree views?

I wrote a function which can yield the text of a tree view item, even if the tree view is in a remote process. The function allocates two chunks of memory in the remote process, populates a TVITEM structure (which is the copied into the remote…
Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
2
votes
1 answer

PinvokeStackImbalance calling comctl32 With CallingConvention.Cdecl

We've just upgraded our projects from .NET 3.5SP1 to .NET 4.5 and now we're getting the PInvokeStackImbalance MDA on a call to DllGetVersion from comctl32. I've read around and understand that the Framework is no longer resilient to incorrect…
1
vote
2 answers

Exception only occuring on DragDrop

I have a WinForms application that makes use of a TaskDialog library that leverages the Vista style dialogs from ComCtl32.dll and for lesser OS's it uses an emulated win form... But that's not the problem... This library works fine and we've never…
Reddog
  • 15,219
  • 3
  • 51
  • 63
1
vote
1 answer

CreateDialog Failed, but why GetLastError returns 0?

I am writing an editor for my project by using scintilla editor component. The editor is for an internal scripting language, having all the basic functionalities like cut,copy, paste etc. As one of the feature I am also providing searching…
Favonius
  • 13,959
  • 3
  • 55
  • 95
1
vote
1 answer

GetModuleHandle and GetProcAddress when COMCTL32.DLL is loaded twice

I am running inside a process where COMCTL32.DLL is loaded twice, once with the version 5.82.7601.17514 and once with the version 6.10.7601.17514. The legacy version is loaded by some legacy DLL the program is linked with, and the other version is…
Pierre Arnaud
  • 10,212
  • 11
  • 77
  • 108
1
vote
1 answer

Detecting COMCTL32 version in .NET

How do I determine which version of comctl32.dll is being used by a C# .NET application? The answers I've seen to this question usually involve getting version info from the physical file in Windows\System, but that isn't necessarily the version…
chrisd
  • 245
  • 4
  • 12
1
vote
2 answers

Error PInvoking Function

I have the following code as part of my control. SetReaderMode function creates the structure and calls the function explained here, http://msdn.microsoft.com/en-us/library/bb775599(VS.85).aspx When I run this code, i get the error Attempted to…
Kratz
  • 4,280
  • 3
  • 32
  • 55
1
vote
1 answer

Enable 'ReaderMode' in .Net control, PInvoke DoReaderMode API

I want to enable the 'ReaderMode' for paning/scrolling my control in .Net. Closest thing I found was this Win API function http://msdn.microsoft.com/en-us/library/bb775599(VS.85).aspx. However, I'm not sure how to call this one, in the documentation…
Kratz
  • 4,280
  • 3
  • 32
  • 55
1
vote
1 answer

CEdit works in ComCtrl32 Version 5.82 but not with 6.10

I want port a MFC project to the current available resources. I develop with Microsoft Visual Studio Community. In the older project the Windows SDK Version is 10.0.15063.0 in the new project the Windows SDK Version is 10.0.17763.0 the older…
Erhy
  • 92
  • 3
  • 8
1
vote
1 answer

What is the P/Invoke signature to send the MCM_GETSELRANGE message to a MonthCalendar?

I'm trying to send the MCM_GETSELRANGE windows message to a standard MonthCalendar. Based on the documentation I have tried the following with no luck (the dates come back as nothing [as in they are not set to anything other than zero], however I do…
aolszowka
  • 1,300
  • 12
  • 36
1
vote
0 answers

List control LVN_ENDSCROLL emulation for Comctl32.dll < 6.0

I want to use the LVN_ENDSCROLL message on a list control. This message is only available on Comctl32.dll v6.0. which I cannot use for various reasons. Is there any workaround available? Actually I only need to get notified when the horizontal…
Jabberwocky
  • 48,281
  • 17
  • 65
  • 115
1
vote
1 answer

Dialog of my Word add-in not using visual styles

I have written a Word add-in in C++ using plain Win32 API. It opens some dialogs but these are always shown without commctl6 visual styles on Vista+. The manifest is in place as RT_MANIFEST and resource ID - 2 (as shown below). When I invoke the…
wpfwannabe
  • 14,587
  • 16
  • 78
  • 129
1
vote
1 answer

How to fix paint artifacts when replacing items in Tree View?

I have a Tree View positioned in the content area of a Tab Control (the Tree View is a sibling of the Tab Control). When I remove tree view items, add new tree view items, and select one of them, the tree view is not painted correctly; everything…
yonran
  • 18,156
  • 8
  • 72
  • 97
1
vote
0 answers

How do I get TTM_POPUP to not fade out instantly and then come back?

I've decided that th easiest way to handle tooltips in my table control is to handle the initial delay myself, create the tooltip dynamically, and then destroy it when it's not needed anymore. My problem is that when I use TTM_POPUP to show the…
andlabs
  • 11,290
  • 1
  • 31
  • 52
1
vote
0 answers

What is the correct way to position/reposition/size/resize/move an up-down control? What are the correct sizes? Should it be a child of the buddy?

Here's one that eludes Google searches, partially because the term 'position' applies to both the position on screen (which is what I am talking about) and the current position of the up/down control (which should probably be called current value…
andlabs
  • 11,290
  • 1
  • 31
  • 52