|
|
|
|
Forum
|
|
|
Creating Dialog Boxes through code, or visually ?, Problem manipulating child windows...
|
|
| admc |
|
New Member

Group: Members
Posts: 5
Member No.: 275
Joined: 11-July 04

|
Hello,
I would like to use ASM to substitute other programming languages, because it's simpler for me. My question is that I should use dialog boxes as main window for larger programs or it would be better to use CreateWindow.
My problem is that I want to make a windows program for educational purposes, and I started to make a Dialog Box resource with WinAsm. I don't want to "code" the properties for the window, I prefer to do this visually. (I was using Visual Basic, so I am used to visually designing the dialogs).
But, I cannot control the controls on the Dialog Box Resource. I've created a scrollbar, but I don't know how to use it.
I've found functions in the Win32SDK, but they require the hWnd of the scrollbar... The problem is that I don't know how to obtain it.
Maybe the hWnd is returned into the "eax" register, when the control is created programmatically using CreateWindowEx... But, as i mentioned before, i prefer designing the dialog/controls visually..
Thank you. Adam
|
| |
|
|
|
| admc |
|
New Member

Group: Members
Posts: 5
Member No.: 275
Joined: 11-July 04

|
Thank you!
Now it works!
|
| |
|
|
|
| admc |
|
New Member

Group: Members
Posts: 5
Member No.: 275
Joined: 11-July 04

|
Hello,
Now I tried to make a Group Box into my dialog box window and put controls in it, but when I started the program, it didn't redraw the frame, so it put out the frame border and left the window in the back inside.
How can I redraw it?
UpdateWindow didn't work, I tried it with the handle of the dialog box window, and with the handle of the groupbox.
|
| |
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|