|
Forum
|
|
|
TabControl, Manipulate the Items of a Tab Control, SetWindowPos API function
|
|
| shoorick |
|

Extremely Active Member
     
Group: Admins
Posts: 2301
Member No.: 160
Joined: 22-June 04

|
take my translator: bin+source there http://www.winasm.net/forum/index.php?showtopic=3053although it has russian interface you may do this: run application and press Esc (pressing esc shows/hides list with results) and try resize main window. to simplify application listbox width is 1/4 of main window client rect width, and height of all childs are 1/2 (or 1/3 if third edit window is visible) how does it works: look at WM_SIZE processing in the source: | CODE | .wm_size: invoke ShowWindow,[hZoom],SW_HIDE invoke MoveWindow,[hStatus],0,0,0,0,TRUE invoke GetWindowRect,[hStatus],rc mov eax,[rc.top] sub eax,[rc.bottom] push eax invoke GetClientRect,[hWnd],rc pop eax add eax,[rc.bottom] cmp [tran],0 mov [rc.bottom],eax je @F mov ecx,3 xor edx,edx div ecx jmp .put_height @@: shr eax,1 .put_height: mov [rc.bottom],eax invoke MoveWindow,[hText],0,[rc.bottom],[rc.right],[rc.bottom],TRUE push [rc.right] cmp [list],0 je @F mov eax,[rc.right] shr eax,1 mov ecx,eax shr eax,1 add ecx,eax mov [rc.right],ecx invoke MoveWindow,[hList],ecx,0,eax,[rc.bottom],TRUE @@: invoke MoveWindow,[hDict],0,0,[rc.right],[rc.bottom],TRUE pop [rc.right] mov ecx,[rc.bottom] add ecx,ecx invoke MoveWindow,[hTran],0,ecx,[rc.right],[rc.bottom],TRUE xor eax,eax ret |
if you wish to run it and see listbox with text learn more there: http://board.flatassembler.net/topic.php?p=94943#94943regards!
|
| |
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
|
|
|