Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: installation package Pin
18-Jul-01 18:25
suss18-Jul-01 18:25 
GeneralRe: installation package Pin
19-Jul-01 3:33
suss19-Jul-01 3:33 
GeneralRe: installation package Pin
Jim A. Johnson18-Jul-01 17:50
Jim A. Johnson18-Jul-01 17:50 
GeneralRemebering... Pin
John Uhlenbrock18-Jul-01 13:13
John Uhlenbrock18-Jul-01 13:13 
GeneralRe: Remebering... Pin
Christian Graus18-Jul-01 13:31
protectorChristian Graus18-Jul-01 13:31 
GeneralRe: Remebering... Pin
Tim Deveaux18-Jul-01 13:32
Tim Deveaux18-Jul-01 13:32 
GeneralRe: Remebering... Pin
Stan Shannon18-Jul-01 14:22
Stan Shannon18-Jul-01 14:22 
GeneralRe: Remebering... Pin
Michael Martin18-Jul-01 19:50
professionalMichael Martin18-Jul-01 19:50 
John

the following code works if you are using a dialog based application, place the SetWindowPos() function in OnInitDialog() and GetWindowRect() function in OnOK or another function that gets called before the dialog closes. You would then need to read/write the values to the registry or ini file.

// Get Window position
CRect rect;
GetWindowRect(&rect);
int nLeft = rect.left;
int nTop  = rect.top;
 
// Set Window position
SetWindowPos(&wndTop, nLeft, nTop, 0, 0, SWP_NOSIZE | SWP_NOZORDER);



Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
Generaldisabling object closing Pin
18-Jul-01 12:38
suss18-Jul-01 12:38 
GeneralServices and System Hooks Pin
Todd Richardson18-Jul-01 11:35
Todd Richardson18-Jul-01 11:35 
GeneralRe: Services and System Hooks Pin
Michael Dunn18-Jul-01 11:58
sitebuilderMichael Dunn18-Jul-01 11:58 
GeneralProblem Runtime Linking To My DLL Pin
AJ12318-Jul-01 11:10
AJ12318-Jul-01 11:10 
GeneralRe: Problem Runtime Linking To My DLL Pin
Michael Dunn18-Jul-01 11:59
sitebuilderMichael Dunn18-Jul-01 11:59 
GeneralRe: Problem Runtime Linking To My DLL Pin
18-Jul-01 12:12
suss18-Jul-01 12:12 
GeneralRe: Problem Runtime Linking To My DLL Pin
18-Jul-01 12:14
suss18-Jul-01 12:14 
GeneralRe: Problem Runtime Linking To My DLL Pin
AJ12321-Jul-01 0:25
AJ12321-Jul-01 0:25 
Question/ShellExecute-/ How can I find the HWND* of the parent window? Pin
18-Jul-01 10:16
suss18-Jul-01 10:16 
AnswerRe: /ShellExecute-/ How can I find the HWND* of the parent window? Pin
Chris Losinger18-Jul-01 10:56
professionalChris Losinger18-Jul-01 10:56 
AnswerRe: /ShellExecute-/ How can I find the HWND* of the parent window? Pin
Bret Faller18-Jul-01 12:38
Bret Faller18-Jul-01 12:38 
GeneralSelectObject (Help a beginner!) Pin
SinclairE18-Jul-01 9:20
SinclairE18-Jul-01 9:20 
GeneralRe: SelectObject (Help a beginner!) Pin
José Luis Sogorb18-Jul-01 10:03
José Luis Sogorb18-Jul-01 10:03 
GeneralRe: SelectObject (Help a beginner!) Pin
Ben Burnett18-Jul-01 11:52
Ben Burnett18-Jul-01 11:52 
QuestionMaximum index of array? Pin
18-Jul-01 9:14
suss18-Jul-01 9:14 
AnswerRe: Maximum index of array? Pin
Tim Deveaux18-Jul-01 9:21
Tim Deveaux18-Jul-01 9:21 
AnswerRe: Maximum index of array? Pin
Nemanja Trifunovic18-Jul-01 10:27
Nemanja Trifunovic18-Jul-01 10:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.