| |

VerySource

 Forgot password?
 Register
Search
View: 632|Reply: 2

Win32 SDK dialog program problems ...

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-17 23:00:01
| Show all posts |Read mode
If CreateDialog itself is creating the main window of the program, how to set its third parameter?

MSDN says that this parameter is the handle of the parent window. For the main window, how should it be written?

Obviously I'm making a dialog program. This dialog is the main window. How do I set the third parameter of the CreateDialog function?
Reply

Use magic Report

0

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-26 23:09:02
| Show all posts
If it is the main window, only NULL is required.
Reply

Use magic Report

0

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-27 01:00:02
| Show all posts
Moreover, you can:
DialogBox (g_hInst, (LPCTSTR) IDD_DLGTREE, NULL, DlgTreeProc);
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list