Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GUI Tab Control width

Status
Not open for further replies.

k4ghg

Technical User
Dec 25, 2001
192
US
Hi - I am trying to program a Tab controlled used a GUI interface in C. I am new and the code below (Which works) was found on the internet :

The master Window is:
Code:
 HWND hwnd = CreateWindowExW(0, CLASS_NAME, L"Tab Control with Listbox",
                                WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT,
                                550, 300,  NULL, NULL, hInstance, NULL);
and the Tab is:

C:
hwndTab = CreateWindowEx(0,WC_TABCONTROL, "", WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN |
                                         WS_VISIBLE | WS_OVERLAPPEDWINDOW, 0, 10, 15, 100, hwnd, (HMENU)100, GetModuleHandle(NULL),
                                         NULL);

The problem is that it appear on the entire screen. Is there a way to control the width? Thank You...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top