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
3
votes
2 answers

Using TaskDialogIndirect in 64-Bit VBA

Problem description I try to get code working under 64-Bit VBA which works fine in 32-Bit VBA. It is regarding Common Controls TaskDialogs. I use Microsoft Access, but the problem should be the same in other VBA hosts. One part works fine in both…
AHeyne
  • 3,377
  • 2
  • 11
  • 16
3
votes
1 answer

Is the call order guaranteed for multiple SetWindowSubclass against the same window?

I am using SetWindowSubclass to set up two different subclass procedures against a control (in this case, a multiline edit field). One subclass "edit" functionality specific to edit controls and the other "base" functionality specific to any…
Greg C
  • 31
  • 2
3
votes
3 answers

How to cancel item label editing in Tree-View control upon ESC keydown in WinAPI

I have a dialog box with a Tree-View control where the user can edit the item labels. I want the user to be able to cancel the label edit by pressing ESC key. The problem is that pressing ESC closes the dialog window immediately. I have tried…
Kemal
  • 849
  • 5
  • 21
3
votes
0 answers

Skin Dialogs when using XP Themes?

I have been skinning dialogs by using the WM_CTLCOLORSTATIC, WM_CTLCOLORBTN messages as such:- case WM_CTLCOLORSTATIC: case WM_CTLCOLORBTN: hdc = (HDC)wParam; hwndCtl = (HWND)lParam; SetTextColor(hdc,RGB(0xff,0xff,0xff)); …
Chris Becke
  • 34,244
  • 12
  • 79
  • 148
3
votes
4 answers

adding syslink not displaying mfc dialog box

At first adding syslink to my dialog box, prevented it from opening. I was asked to add the following line in my code to display a dialog box with "Syslink" control. #pragma…
3
votes
3 answers

Obtain the true name of the currently select file in the common file dialog?

One can get the text of the selected item in the list-view of a common dialog. But one can NOT get its PIDL, and if the user has chosen to hide known extensions (the default), then one cannot really tell what file was selected without either its…
Mordachai
  • 9,412
  • 6
  • 60
  • 112
3
votes
1 answer

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

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…
GreenRibbon
  • 299
  • 2
  • 16
2
votes
1 answer

ComCtl32.dll Ordinal 345 not found error only on Windows XP

I need to make an application that runs on Windows XP and up for multiple reasons. I am using ComCtl32.dll to call TaskDialogIndirect. The only problem is that the error "The ordinal 345 could not be located in ..." only occurs on Windows XP. The…
Davide_24
  • 67
  • 7
2
votes
0 answers

Question about WM_NOTIFY message for SysLink controls

In this Microsoft example on how to process the WM_NOTIFY message for a SysLink control they have this code,g_hLinkbeing the handle of the SysLink control: // g_hLink is the handle of the SysLink control. case WM_NOTIFY: switch…
Jabberwocky
  • 48,281
  • 17
  • 65
  • 115
2
votes
0 answers

Column filter in ListView on win api

I'm doing some research and I would like to know how I can implement a column filter in a ListView using purely win32 api. Something like this: I wrote a simple test code, to generate a List View to show the CSV content. #include…
2
votes
2 answers

Forcing a combobox to "dropdown" above instead of below

When you click on the "dropdown" button of a combobox, the dropped down listbox appears below the combobox, unless there is not enough space below, in which case the listbox appears above. Now I wonder if there is a possibility to force the lisbox…
Jabberwocky
  • 48,281
  • 17
  • 65
  • 115
2
votes
1 answer

How to link a 64 executable that require an rsrc section and comctl32.dll?

Trying to build UltraDefrag. Sounds pretty simple, but as soon as you add a rc.o to the link objects of your binary, it will use the 32 bit version of comctl32.dll triggering a 0xc0000007 error on program startup. This is a known mingw64 bug, but as…
user2284570
  • 2,891
  • 3
  • 26
  • 74
2
votes
0 answers

What is the proper use of DTM_GETIDEALSIZE? Treating the returned size as pixels gives me very large, sometimes variable, heights

I'm trying to autosize some date-time picker controls with DTM_GETIDEALSIZE, but I don't quite get how to use this message properly. While widths returned seem to be fine if treated as pixels, heights seem to be not only way off, but sometimes…
andlabs
  • 11,290
  • 1
  • 31
  • 52
2
votes
1 answer

How to set focus on a List View item?

I am trying to write a program that selects and focuses a specific item in a list view. Why is calling ListView_SetSelectionMark (or sending LVM_SETSELECTIONMARK) not working to set focus on a list view item? After calling ListView_SetSelectionMark,…
yonran
  • 18,156
  • 8
  • 72
  • 97
2
votes
2 answers

Windows 8 comctl32.dll access violation

I am getting the following exception on Windows 8. However it works on Windows 7 environment. It looks this exception is thrown by comctl32.dll. I had gone through the below which has issue with the tooltip not with the…
user3917724
  • 21
  • 1
  • 5