Questions tagged [common-controls]

A set of extended windows desktop controls like TreeView, ListView, ProgressBar and TrackBar. Available as ActiveX mscomctl.ocx library and very popular in Visual Basic and Delphi. Superseeded by current ui libraries but still working today.

The Windows Common Controls are a set of standardized user interface components. They originated in Windows 3.11 and were implemented by COMMCTRL.DLL (later named COMCTL32.DLL in Windows 95). Information about the history of the common controls is available here.

Notable controls (which where fancy in the 1990s) are:

  • TreeView - display hierarchical data
  • ListView - display lists with icons (comparable to the lists in the windows explorer application)
  • ProgressBar - a component which displays application progress
  • StatusBar - a way to display status messages in a desktop application window.

MSDN has a complete list of the provided controls.

The controls are distributed with the operating system and coupled to the .

To maintain backwards compatibility, several versions of the controls may exist on a given system. Applications have to specify by an application manifest, which version of the controls should be used.

Nowadays the controls still work, but are replaced by modern user interface toolkits (like or )

102 questions
0
votes
0 answers

Marquee progress bar and PM_SETMARQUEE being ignored in VB6

I've just tried setting up a scrolling marquee progress bar in one of my VB6 applications, and while it seems to switch into marquee mode, the automatic timer (set via PBM_SETMARQUEE) either fails or is ignored. I have an appropriate visual style…
Deanna
  • 23,876
  • 7
  • 71
  • 156
0
votes
2 answers

program crash due to MessageBoxEx

i was trying to extract text from an EDIT control and display it in a MessageBox in win32, the code compiles and runs but whenever i click the button to do the task, the program stops working and crashes, i tried to trace it on my own and somehow…
Maurice Rodriguez
  • 663
  • 2
  • 7
  • 17
0
votes
1 answer

child of tab dialog control cover the tab itself

I create a tab control in WM_INITDIALOG this way: INITCOMMONCONTROLSEX icex = {0}; icex.dwSize = sizeof(INITCOMMONCONTROLSEX); icex.dwICC = ICC_TAB_CLASSES; InitCommonControlsEx(&icex); TCITEM tie; LPSTR text = "my tab"; tie.mask =…
user667222
  • 179
  • 3
  • 16
0
votes
1 answer

WinAPI changing parent of a ListView control

I'm developing an application with tab controls. After clicking on an icon in a tab, a popup window opens and the contents of the tab are moved to the popup window. What I do is simple - change parent of each control within the tab to the popup…
W.B.
  • 5,445
  • 19
  • 29
0
votes
1 answer

Simulating keypress of SysDateTimePick32

I'd like to send a keypress to a SysDateTimePick32 common control. Imagine the following scenario: There is a table with many rows and many columns, which is user-drawn. When you hit "Enter" in one of those columns, a SysDateTimePick32 control is…
Daniel Albuschat
  • 806
  • 8
  • 20
0
votes
1 answer

Passing the value of a common controls checkbox to a javascript flag

If I have an editable checkbox defined in a table as follows:
TangoKilo
  • 1,785
  • 3
  • 25
  • 43
0
votes
2 answers

TVITEM LPARAM to store string

I've got a treeview listing files that are dropped upon it. When I make a new treeview item, I'd like to store the address of the file as a string in that item, and retrieve it for various nefarious purposes at a later point in time. Looking at the…
Ben
  • 54,723
  • 49
  • 178
  • 224
0
votes
1 answer

Can/Should C++ #pragma Preprocessors Reside In Functions

In short, I am wanting to make a function that embeds the visual styles manifest and links to ComCtl32.lib, version 6 if available. Here is basically what I am hoping to do: void InitVivify() { // Embed visual style XML manifest #pragma…
Brandon Miller
  • 2,247
  • 8
  • 36
  • 54
0
votes
1 answer

Enable grouping in ListView - Invalid Handle?

I do not understand the following situation: HWND hListView = CreateWindowEx( 0, WC_LISTVIEW, NULL, WS_CHILD | WS_VISIBLE | LVS_REPORT | LVS_EDITLABELS | LVS_SHOWSELALWAYS, 0, …
user1017258
  • 53
  • 2
  • 6
0
votes
0 answers

How can I permanently change the color of an item in a ListView?

I have create list a listview list[0]=CreateWindow(WC_LISTVIEW,L"",WS_DLGFRAME|WS_CHILD|WS_VISIBLE|LVS_REPORT|LVS_SINGLESEL,-,-,-,-,hwnd,NULL,hInstance,NULL); LVCOLUMN lvcolumn; lvcolumn.mask = LVCF_FMT|LVCF_TEXT|LVCF_WIDTH; lvcolumn.fmt =…
Phat Tran
  • 307
  • 1
  • 3
  • 14
-1
votes
1 answer

What is the offical way to tell Microsoft to fix bugs in Tab Common Control

There are obviously some bugs in Tab control of Common Controls 6 Here is my testing environment showing Tabs in often used way: But when I switch to bottom aligned tabs, I get wrong aligned text here. When I switch to left aligned view, it…
Symundo
  • 31
  • 6
-3
votes
2 answers

How to Display Controls when using OnPaint Method in C#

How to Display Controls(e.g. RadioButton, Button etc.) when using OnPaint Method in C#? It is possible to create custom controls in constructor, but I need to use common controls of C#? Please suggest. I'm trying to display common controls but no…
1 2 3 4 5 6
7