Solved

how to set a Model Dlg position?

Posted on 2008-10-02
1
290 Views
Last Modified: 2013-11-20
Hi,
how to set a Model Dlg position? SetWindowPos does not work before dlg.DoModal()

Thanks
0
Comment
Question by:UdiRaz
1 Comment
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 22622298
You do it in the OnInitDialog of the dialog (after CDialog::OnInitDialog();).
Before DoModal the window is not yet created.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Detect file exist or not 3 160
Header Errors LNK2019, LNK1120 - Unresolved Externals 4 142
Bartender label printing - switch on and off graphics 3 40
Problem to App 4 83
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question