comctl32

Using TaskDialogIndirect in 64-Bit VBA

梦想的初衷 提交于 2021-02-07 20:34:28
问题 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 (32- and 64-Bit) VBA, the other part doesn't. TaskDialog API working well in both (32- and 64-Bit) VBA You can start the procedure TestTaskDlg for a test. Option Explicit 'Original API definition: '------------------------ 'HRESULT TaskDialog( ' HWND

Column filter in ListView on win api

梦想的初衷 提交于 2021-01-28 01:31:34
问题 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 <windows.h> #include <stdio.h> #include <stdlib.h> #include <commctrl.h> #include <string.h> #define WND_CLASS_NAME "CSVVIEW" char* filename; HWND hList; int rgb(int r, int g, int b) { return r + (g << 8) + (b << 16); } void onCreate(HWND hWnd, LPARAM lParam) {

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

有些话、适合烂在心里 提交于 2020-01-23 10:51:08
问题 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

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

这一生的挚爱 提交于 2020-01-23 10:50:06
问题 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

Forcing a combobox to “dropdown” above instead of below

旧城冷巷雨未停 提交于 2019-12-23 02:22:09
问题 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 to appear above the combobox, even if there is enough space below. Illustration When I click on the combo box, I'd like the "drop down" list box appear always above as on the left screen copy. 回答1: Everything is possible, and you don't need to

C#: comctl32.dll version 6 in debugger

一笑奈何 提交于 2019-12-20 23:48:16
问题 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. 回答1: Robpol86, your code is throwing SEHExceptions, because the signatures

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

走远了吗. 提交于 2019-12-13 17:47:42
问题 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 it says, Note This function is not declared in any public header. To use it, you must access it as ordinal 383 from Comctl32.dll. I've never called a function that didn't have a name before, can anyone describe how to do this in VB.Net? 回答1: Well

TaskDialog change button language

╄→гoц情女王★ 提交于 2019-12-11 13:17:22
问题 I use the Vista TaskDialog Wrapper and Emulator for WindowsForms. It works fine, but how can I change the language of the buttons? 回答1: I have reasons to think change language of common buttons is NOT possible. (Common buttons are treated in special way and also return special results, please see TASKDIALOGCONFIG structure. There is no option provided for language change.) So if you are speaking about change of language of common buttons Yes , No , OK , Cancel , Retry , Close , then text on

Error PInvoking Function

落花浮王杯 提交于 2019-12-11 07:14:13
问题 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 read or write protected memory. This is often an indication that other memory is corrupt. I'm not sure what the issue may be. What am I doing wrong? <DllImport("Comctl32.dll", EntryPoint:="#383", _ CallingConvention:=CallingConvention.StdCall)> _

List control LVM_SETTOPINDEX needed

若如初见. 提交于 2019-12-10 15:56:16
问题 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 LVM_SETTOPINDEX message which would be natural. Is there an easy clean way to set the topmost item? My list-control is always in report mode. 回答1: Use LVM_GETITEMPOSITION or LVM_GETITEMRECT to obtain the items position. Use LVM_SCROLL to scroll the list so that your item is the top item. 回答2: First, it may NOT