Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
111 views

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 ...
Phil B's user avatar
  • 453
0 votes
1 answer
79 views

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 ...
user3161924's user avatar
  • 2,551
0 votes
0 answers
29 views

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 ...
user3161924's user avatar
  • 2,551
0 votes
1 answer
61 views

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')...
Karl Auer's user avatar
0 votes
1 answer
56 views

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 ...
user3161924's user avatar
  • 2,551
0 votes
0 answers
66 views

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 ...
user3161924's user avatar
  • 2,551
5 votes
1 answer
263 views

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 ...
user3161924's user avatar
  • 2,551
0 votes
1 answer
56 views

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 ...
user3161924's user avatar
  • 2,551
0 votes
0 answers
72 views

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.
user3161924's user avatar
  • 2,551
0 votes
1 answer
409 views

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 ...
Davide_24's user avatar
0 votes
1 answer
326 views

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 ...
user3161924's user avatar
  • 2,551
0 votes
1 answer
272 views

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 ...
user3161924's user avatar
  • 2,551
2 votes
0 answers
125 views

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 ...
Jabberwocky's user avatar
  • 51.3k
3 votes
2 answers
1k views

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 ...
AHeyne's user avatar
  • 3,505
2 votes
0 answers
708 views

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 ...
Carlos Rodrigues's user avatar
0 votes
0 answers
131 views

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 ...
Jabberwocky's user avatar
  • 51.3k
0 votes
0 answers
70 views

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 ...
Adrian's user avatar
  • 11.1k
3 votes
3 answers
543 views

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 ...
Kemal's user avatar
  • 889
2 votes
2 answers
2k views

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 ...
Jabberwocky's user avatar
  • 51.3k
6 votes
3 answers
896 views

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 ...
Jabberwocky's user avatar
  • 51.3k
0 votes
0 answers
80 views

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 ...
Kathleen's user avatar
  • 108
2 votes
0 answers
158 views

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 ...
andlabs's user avatar
  • 11.7k
2 votes
1 answer
2k views

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 ...
yonran's user avatar
  • 19.3k
0 votes
1 answer
293 views

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 ...
andlabs's user avatar
  • 11.7k
4 votes
1 answer
565 views

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. ...
andlabs's user avatar
  • 11.7k