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
1 answer

Making a vb.net application blend in with the Windows theme

Previously I used to piddle around with VB6 to develop a couple of personal projects. Following my upgrade to Windows 7, I've decided to piddle about with vb.net Express Edition 2010. If I wanted my VB6 application to blend in with the visual style…
Richard
  • 1,471
  • 7
  • 23
  • 47
0
votes
2 answers

What's the sense passing two HWND handles when doing TTM_ADDTOOL to a tooltip object?

In this MSDN code example: // Description: // Creates a tooltip for an item in a dialog box. // Parameters: // idTool - identifier of an dialog box item. // nDlg - window handle of the dialog box. // pszText - string to use as the tooltip…
Jimm Chen
  • 3,411
  • 3
  • 35
  • 59
0
votes
1 answer

InitCommonControlsEx() fails with ICC_LINK_CLASS in Windows 8.1

I'm trying to put a simple hyperlink on my window. INITCOMMONCONTROLSEX iccx; iccx.dwSize = sizeof(INITCOMMONCONTROLSEX); iccx.dwICC = ICC_LINK_CLASS; // CommCtrl.h: #define ICC_LINK_CLASS 0x00008000 bool bResult = InitCommonControlsEx(&iccx); //…
hkBattousai
  • 10,583
  • 18
  • 76
  • 124
0
votes
0 answers

how to disable tooltips ctrl:columnhtml

I have this simple code in a jsp with common-controls When…
Michele Da Ros
  • 856
  • 7
  • 21
0
votes
1 answer

How to simulate selection change in the "file type" ComboBox in GetSaveFileName dialog from a separate process?

I'm writing a custom module to work with a proprietary software. (That software has been discontinued and I do not have its source code.) My module will run as a separate process. Its goal is to automate an operation via this proprietary software.…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
0
votes
1 answer

using struts property in another struts tag

I am using Struts1; I am iterating through a list using logic:iterate and i would like to use the "index" property as an argument to be passed to a javascript function while pressing a button
Michele Da Ros
  • 856
  • 7
  • 21
0
votes
1 answer

Setting the text and background colours of a super classed listbox control

I am in the process of writing a super classed version of the Windows LISTBOX common-control to add extra functionality. A standard control sends the WM_CTLCOLORLISTBOX message to its parent which allows both its text and background colours to be…
user3259248
0
votes
1 answer

Problems with Windows TreeView Common Control Notifications and Multi-Byte Character Set

I ran into a strange problem while using the TreeView Common Control in a Windows application written in C++ and by means of the Windows API (no MFC or other!): The two important notifications TVN_ITEMCHANGED and TVN_ITEMCHANGING (available since…
feldmann
  • 36
  • 5
0
votes
4 answers

Once and for all: how do I get a fully transparent checkbox, button, radio button, etc. in Windows API, and not with a black background?

First, sorry if I sound arrogant/rude here. All right, so everyone has run into this by now (I hope); I just haven't found any adequate answer anywhere. We start with a Common Controls 6 manifest and case WM_CTLCOLORSTATIC: if (/* window has…
andlabs
  • 11,290
  • 1
  • 31
  • 52
0
votes
1 answer

Placing a image inside an CEdit control in Win32

I'm trying to achieve an effect where there's a visible logo inside an edit control and the logo becomes hidden when the user places the focus on the edit control. What's the best way to approach this? Would it be better to place an image control…
simplecoder
  • 81
  • 3
  • 6
0
votes
1 answer

Getting column names from SysHeader32 control in another process

I am making a program (program1) that will read the name of the columns of a header (SysHeader32) that is located in a report-style List (SysListView32) in another program (program2). So basically I want my program to go into another program and…
computerWizard
  • 94
  • 3
  • 12
0
votes
2 answers

How do I get updated themes for CTreeCtrl

I have a C++ MFC application which uses a CTreeCtrl, I am running Windows 7 and visual Studio 2008. I am attempting to get my tree control to have arrows for the expand/collapse buttons instead of the +/- a good example of what I am looking for is…
Dusty E-D
  • 65
  • 6
0
votes
1 answer

Allowing Enter in hotkey control

I'm using the standard hotkey control to allow user to specify a key combination for a certain action. However, it doesn't allow using the Return (Enter) key. Is there a way to allow it? My action is sort-of chat reply, so having a hotkey like…
riv
  • 6,846
  • 2
  • 34
  • 63
0
votes
1 answer

Common Controls 6.0 in Windows 2000?

I'm wanting to use Grouping in CListCtrls, which seems to have been introduced in Common Controls 6. CC6 only came out with XP, so we have a problem with Windows 2000 and earlier. Deploying a new version of Comctl32.dll would seem to be the solution…
Smashery
  • 57,848
  • 30
  • 97
  • 128
0
votes
1 answer

How to properly set the size of a ListView column according to its content?

I have a number of list view controls (TListView) that are used to display data. All these list view are set to "Detail" mode and all have TImageList assigned to their "SmallIcons" properties. I'm trying to set the width of these column based on…
Stephane
  • 3,173
  • 3
  • 29
  • 42