flat assembler
Message board for the users of flat assembler.
Index
> Windows > [solved]COMBOBOXINFO |
Author |
|
revolution 27 Aug 2020, 11:50
Yo didn't show all the code so we have to guess you are using 64-bit code? Right?
If so then stateButton being a single dword will unalign all the following values. You could try "stateButton dd ?,?" to make it fill the full qword. |
|||
27 Aug 2020, 11:50 |
|
Overclick 27 Aug 2020, 11:55
Yes it is 64 bit as all present handles is qword. I tried your advice, still the same error.
|
|||
27 Aug 2020, 11:55 |
|
Overclick 27 Aug 2020, 12:08
I tried to force the size as 100. Also tried to use struc instead of struct...
|
|||
27 Aug 2020, 12:08 |
|
revolution 27 Aug 2020, 13:07
And cbSize.
We can't see RECT, so maybe there also. |
|||
27 Aug 2020, 13:07 |
|
Overclick 27 Aug 2020, 13:20
RECT provided by Fasm\INCLUDE\EQUATES\USER64.INC
I tried that value too. Any way, it needs the size only whatever how I manage structure inside. I gived to it 100 bytes will try to give more. I don't use it's names yet. Windows manage it by shifting no matter how I manage parts of it. Don't you think I have to enable something or SetComboBoxInfo first?.. I need few minutes to return for that search... |
|||
27 Aug 2020, 13:20 |
|
Roman 27 Aug 2020, 13:27
Maybe try create window and children combobox window ?
Code: CreateWindow("combobox", "Cppkdkd", WS_CHILD | WS_VISIBLE | CBS_AUTOHSCROLL, 250, 50, 80, 150, hWnd, 0, hInstance, NULL); And not get combobox from dialog. Last edited by Roman on 27 Aug 2020, 13:29; edited 1 time in total |
|||
27 Aug 2020, 13:27 |
|
revolution 27 Aug 2020, 13:29
If you showed some code people can run then they might be able to help you better. We have to take your word that it is the stuct above causing the problem, but perhaps the problem is somewhere else.
|
|||
27 Aug 2020, 13:29 |
|
Overclick 27 Aug 2020, 13:45
My code about 62 kbytes. You can use some dialog template to test it. I was hoping the problem would be immediately apparent...
|
|||
27 Aug 2020, 13:45 |
|
revolution 27 Aug 2020, 13:50
Don't post all your code. Just a minimal example showing the problem.
|
|||
27 Aug 2020, 13:50 |
|
Overclick 27 Aug 2020, 13:51
So I did ))
|
|||
27 Aug 2020, 13:51 |
|
revolution 27 Aug 2020, 13:52
Overclick wrote: So I did )) |
|||
27 Aug 2020, 13:52 |
|
Roman 27 Aug 2020, 14:14
Quote:
Congratulation You do super combo to win api ! |
|||
27 Aug 2020, 14:14 |
|
Overclick 27 Aug 2020, 14:19
There is an other way to do the same by CB_GETCOMBOBOXINFO. I'll check if it returns anything.
|
|||
27 Aug 2020, 14:19 |
|
ProMiNick 27 Aug 2020, 14:32
Such tasks I usualy solve by looking for prey program that already use needed imports. In current case imports should have GetComboBoxInfo, disasm it and analize what structure contents are passed to it, maybe analize code around it and get knowledge about offsets of other struct members,
|
|||
27 Aug 2020, 14:32 |
|
Overclick 27 Aug 2020, 15:16
That is all I can see
|
||||||||||
27 Aug 2020, 15:16 |
|
Overclick 27 Aug 2020, 19:33
Ok...
Function doesn't works at all. But message request is ok Solution: Code: .data struct COMBOBOXINFO cbSize dd ? rcItem RECT rcButton RECT stateButton dd ? hwndCombo dq ? hwndItem dq ? hwndList dq ? ends PRESETS_info COMBOBOXINFO sizeof.COMBOBOXINFO CB_GETCOMBOBOXINFO = 0164h .code invoke SendDlgItemMessage,[hWnd],IDC_PRESETS,\ CB_GETCOMBOBOXINFO,0,PRESETS_info |
|||
27 Aug 2020, 19:33 |
|
Roman 30 Aug 2020, 04:47
Maybe using dialogbox, try create separately combobox window(let say hwndCombo1) !
And work with hwndCombo1. Plus hwndCombo1 work parallel to DialogBox ! And easy to do tricks(show\hidden\change font and size\apply or delet names) with hwndCombo1 window. And you might create combobox list ! https://lh3.googleusercontent.com/proxy/nlav8u8JUMd5uB-2xY78R_4PZzH5HgW8gLdgnt37SpDEGpcwYTjPX_uxhpsdIcr9ypp7IM0Cic3z2GkOJg https://www.sourcecodester.com/sites/default/files/untitled-1_7.png invoke SendMessage,[hwndCombo1],WM_GETTEXT,50,ReciveTxtBuffer 50 means get 50 symbols from hwndCombo1 SendTxtBuffer db 'Send this text to combobox and quikly !',0 invoke SendMessage,[hwndCombo1],WM_SETTEXT,0,SendTxtBuffer |
|||
30 Aug 2020, 04:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.