Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionText color in an Edit Control Pin
Joy Anne16-Mar-06 15:39
Joy Anne16-Mar-06 15:39 
AnswerRe: Text color in an Edit Control Pin
Stephen Hewitt16-Mar-06 15:52
Stephen Hewitt16-Mar-06 15:52 
AnswerRe: Text color in an Edit Control Pin
snowheavy16-Mar-06 15:58
snowheavy16-Mar-06 15:58 
GeneralRe: Text color in an Edit Control Pin
Naveen16-Mar-06 16:03
Naveen16-Mar-06 16:03 
AnswerRe: Text color in an Edit Control Pin
John R. Shaw16-Mar-06 16:25
John R. Shaw16-Mar-06 16:25 
AnswerRe: Text color in an Edit Control Pin
Hamid_RT16-Mar-06 17:02
Hamid_RT16-Mar-06 17:02 
QuestionPlace to save Wnd position Pin
Richard Andrew x6416-Mar-06 14:03
professionalRichard Andrew x6416-Mar-06 14:03 
AnswerRe: Place to save Wnd position Pin
bob1697216-Mar-06 15:41
bob1697216-Mar-06 15:41 
I use the following so it gets stored on a per user basis...

void CMainFrame::OnClose()
{
// TODO: Add your message handler code here and/or call default
WINDOWPLACEMENT windowPlacement;
GetWindowPlacement(&windowPlacement);
AfxGetApp()->WriteProfileBinary("Settings","Window",(BYTE*)&windowPlacement,
sizeof(WINDOWPLACEMENT));

CMDIFrameWnd::OnClose();
}

BOOL CYourApp::InitInstance()
{
// Other stuff removed for clarity


// The main window has been initialized, so show and update it.
// Also get previous settings from registry for position
UINT unSize;
WINDOWPLACEMENT * pWindowPlacement;

if (GetProfileBinary("Settings","Window",(LPBYTE*)&pWindowPlacement,&unSize)) {
pMainFrame->SetWindowPlacement(pWindowPlacement);
} else {
pMainFrame->ShowWindow(SW_SHOWMAXIMIZED);
}

pMainFrame->UpdateWindow();

return TRUE;
}
GeneralRe: Place to save Wnd position Pin
Richard Andrew x6416-Mar-06 16:07
professionalRichard Andrew x6416-Mar-06 16:07 
QuestionTurn Off monitor?????? Pin
AhmedOsamaMoh16-Mar-06 13:36
AhmedOsamaMoh16-Mar-06 13:36 
AnswerRe: Turn Off monitor?????? Pin
Chris Gao16-Mar-06 15:29
Chris Gao16-Mar-06 15:29 
AnswerRe: Turn Off monitor?????? Pin
Xing Chen16-Mar-06 16:01
Xing Chen16-Mar-06 16:01 
QuestionHow to generate a new icon at runtime for MFC tree control Pin
lastgen16-Mar-06 13:15
lastgen16-Mar-06 13:15 
AnswerRe: How to generate a new icon at runtime for MFC tree control Pin
Stephen Hewitt16-Mar-06 13:30
Stephen Hewitt16-Mar-06 13:30 
AnswerRe: How to generate a new icon at runtime for MFC tree control Pin
Hamid_RT16-Mar-06 17:56
Hamid_RT16-Mar-06 17:56 
AnswerRe: How to generate a new icon at runtime for MFC tree control Pin
Hamid_RT16-Mar-06 19:38
Hamid_RT16-Mar-06 19:38 
Questionexport function in DLL Pin
yongwpi16-Mar-06 11:39
yongwpi16-Mar-06 11:39 
AnswerRe: export function in DLL Pin
Richard Andrew x6416-Mar-06 14:24
professionalRichard Andrew x6416-Mar-06 14:24 
GeneralRe: export function in DLL Pin
yongwpi16-Mar-06 14:27
yongwpi16-Mar-06 14:27 
QuestionMultiple Displays problem- how to get the absolute coordinates Pin
Checker200316-Mar-06 9:59
Checker200316-Mar-06 9:59 
AnswerRe: Multiple Displays problem- how to get the absolute coordinates Pin
Michael Dunn16-Mar-06 11:02
sitebuilderMichael Dunn16-Mar-06 11:02 
GeneralRe: Multiple Displays problem- how to get the absolute coordinates Pin
Checker200316-Mar-06 20:36
Checker200316-Mar-06 20:36 
AnswerAnother thing to watch for Pin
normanS16-Mar-06 18:23
normanS16-Mar-06 18:23 
GeneralRe: Another thing to watch for Pin
Checker200316-Mar-06 21:33
Checker200316-Mar-06 21:33 
GeneralRe: Another thing to watch for Pin
normanS16-Mar-06 22:51
normanS16-Mar-06 22:51 

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.