86 questions
2
votes
0
answers
111
views
Intermittent icons with black background - 2 different versions on comctl32.dll loaded
Delphi 10.4.2 32-bit app(s) I work on will intermittently load icons with black backgrounds (no transparency). It can happen several times a day, but is not reliably reproducible. Usually, I have to ...
0
votes
1
answer
79
views
Randomized Base Address - Yes (/DYNAMICBASE) and old school subclassing causes crash
I noticed an older app had the Randomized Base Address option set to No (/DYNAMICBASE:NO) for some reason. I changed it to Yes, then forgot about it. Came back days later to run the application in ...
0
votes
0
answers
29
views
Tool tip goes away and comes back on ListView
I am testing if it is possible to have a tool tip show up on top of a ListView Group Header. The following code works, which is in the subclass procedure for the ListView. The main issue I'm asking ...
0
votes
1
answer
61
views
Can't set button image list
I use MinGW32 with Code::Blocks IDE on Windows 10. I'm trying to assign an image list to a button via a "BUTTON_IMAGELIST", but the "SendMessage" function always fails (returns '0')...
0
votes
1
answer
56
views
MFC: Why when deleting the last item of a ListBox (becomes empty) the virtual function DeleteItem() is not called?
Using MFC I sub-classed the CListBox (CBCGPListBox - for themes) to send selection change notifications when items are deleted. This works fine for all items except the very last item deleted from ...
0
votes
0
answers
66
views
Stop animation on Windows Progress Control before reaching 100%?
On a cancel request I'd like to change the standard Windows progress bar control to Paused status (for yellow), and then stop the animation without putting the bar at 100%.
Setting the state to paused ...
5
votes
1
answer
263
views
Why is DrawFocusRect affected by the Text color?
I was getting weird results with DrawFocusRect() in a TreeView custom draw routine. The outline was somewhat different, some were almost a solid line and others were dashed. I found out that it's ...
0
votes
1
answer
56
views
Report item width of items in TreeView via NM_CUSTOMDRAW?
Is there a WM_MEASUREITEM type item for custom drawing treeview items via NM_CUSTOMDRAW? I'd like to be able to report the width the item will actually be once I paint it in the post paint so a ...
0
votes
0
answers
72
views
Get TreeView item text related to current item handling WM_NOTIFY / NM_CUSTOMDRAW?
Subject says it all. Is there a way when handling NM_CUSTOMDRAW for a tree view to get the text of the item currently being drawn?
Thanks.
0
votes
1
answer
409
views
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 ...
0
votes
1
answer
326
views
MFC: CListCtrl LVS_SORTASCENDING not working?
I'm not sure why something so simple doesn't seem to work? I have a CFormView with a CListCtrl member variable that uses DDX. The Dialog already has the Ascending sort option set in the resource ...
0
votes
1
answer
272
views
WIN32: Is there a way to have the button icon (BM_SETIMAGE) on the right side of the text
Is there a way to have a button with text and graphic, with the graphic on the right side of the text, without having to owner-draw the button?
I want to just sent BM_SETIMAGE and whatever else would ...
2
votes
0
answers
125
views
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 ...
3
votes
2
answers
1k
views
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 ...
2
votes
0
answers
708
views
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 ...
0
votes
0
answers
131
views
TVS_EX_FADEINOUTEXPANDOS has no effect in a tree view
The TVS_EX_FADEINOUTEXPANDOS extended style does not seem to have any effect on my tree view.
The documentation says:
Fade expando buttons in or out when the mouse moves away or into a state of ...
0
votes
0
answers
70
views
How to position the content of a CListBox on a non-item boundary?
Not sure if this is possible, but I have two CListBox controls which I need to vertically sync, but the controls may have different amount of data in them as well as each row may be of different ...
3
votes
3
answers
543
views
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 ...
2
votes
2
answers
2k
views
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 ...
6
votes
3
answers
896
views
List control LVM_SETTOPINDEX needed
The list-view control has the LVM_GETTOPINDEX message that allows to get the index of the topmost visible item.
Now I need to set the topmost visible item, but surprisingly there is no ...
0
votes
0
answers
80
views
TListBox OnDrawItem causes AV in COMCTL32.dll
I have narrowed down the cause of my app generating access violations from COMCTL32.dll to TListBox::OnDrawItem. The TListBox.Style is lbOwnerDrawFixed.
App is built with C++ Builder XE4, running on ...
2
votes
0
answers
158
views
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 ...
2
votes
1
answer
2k
views
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 ...
0
votes
1
answer
293
views
Is my subclassing Common Controls tooltip destroying itself in WM_DESTROY before I can?
The program below creates a window with a Common Controls tooltip that subclasses the window. When I get a WM_DESTROY, I instinctively decide to destroy the tooltip, since WM_DESTROY comes before ...
4
votes
1
answer
565
views
Are images in ILC_COLOR32 image lists alpha premultiplied or not? I'm getting conflicting information
Very simple question here: Are ILC_COLOR32 Image Lists alpha-premultiplied or not? Various questions on Stack Overflow, like this one, imply they are; this wxWidgets bug, however, indicates otherwise. ...