Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I capture ENTER key in an Edit Control? Pin
Jethro636-Dec-05 9:06
Jethro636-Dec-05 9:06 
GeneralRe: How do I capture ENTER key in an Edit Control? Pin
Jörgen Sigvardsson6-Dec-05 13:07
Jörgen Sigvardsson6-Dec-05 13:07 
QuestionForce window on top Pin
Shay Harel6-Dec-05 6:34
Shay Harel6-Dec-05 6:34 
QuestionRe: Force window on top Pin
David Crow6-Dec-05 7:01
David Crow6-Dec-05 7:01 
AnswerRe: Force window on top Pin
Shay Harel6-Dec-05 7:57
Shay Harel6-Dec-05 7:57 
GeneralRe: Force window on top Pin
David Crow6-Dec-05 8:17
David Crow6-Dec-05 8:17 
GeneralRe: Force window on top Pin
Shay Harel6-Dec-05 8:32
Shay Harel6-Dec-05 8:32 
GeneralRe: Force window on top Pin
Blake Miller6-Dec-05 9:43
Blake Miller6-Dec-05 9:43 
Also, you could be seriously jacking up your window position, if it is already positioned near the upper left corner with only a little bit of the lower right corner showing.
I strongly recommend something like:

this->SetWindowPos(
&CWnd::wndTopMost,10,10,
Rect.right - Rect.left, // its width
Rect.bottom - Rect.Top, // its height
SWP_SHOWWINDOW);

Or even

this->SetWindowPos(
&CWnd::wndTopMost,10,10,
max(Rect.right - Rect.left, 100), // its width
max(Rect.bottom - Rect.Top, 100), // its height
SWP_SHOWWINDOW);

If you are REALLY paranoid, like me OMG | :OMG:

QuestionIsBadReadPtr vs IsBadStringPtr Pin
Chintoo7236-Dec-05 6:11
Chintoo7236-Dec-05 6:11 
AnswerRe: IsBadReadPtr vs IsBadStringPtr Pin
David Crow6-Dec-05 7:03
David Crow6-Dec-05 7:03 
AnswerRe: IsBadReadPtr vs IsBadStringPtr Pin
Jörgen Sigvardsson6-Dec-05 12:59
Jörgen Sigvardsson6-Dec-05 12:59 
QuestionMS Access locking Problem Pin
zinc_z6-Dec-05 5:05
zinc_z6-Dec-05 5:05 
AnswerRe: MS Access locking Problem Pin
JonEngle6-Dec-05 5:56
JonEngle6-Dec-05 5:56 
GeneralRe: MS Access locking Problem Pin
zinc_z7-Dec-05 5:28
zinc_z7-Dec-05 5:28 
Questionhow to work out this problem Pin
chen10006-Dec-05 5:04
chen10006-Dec-05 5:04 
AnswerRe: how to work out this problem Pin
toxcct6-Dec-05 8:48
toxcct6-Dec-05 8:48 
GeneralRe: how to work out this problem Pin
Wes Aday6-Dec-05 9:06
professionalWes Aday6-Dec-05 9:06 
GeneralRe: how to work out this problem Pin
chen10006-Dec-05 15:46
chen10006-Dec-05 15:46 
GeneralRe: how to work out this problem Pin
toxcct6-Dec-05 21:13
toxcct6-Dec-05 21:13 
AnswerRe: how to work out this problem Pin
toxcct6-Dec-05 23:00
toxcct6-Dec-05 23:00 
QuestionCListCtrl -> Row Height & Bold font or new font Pin
sdancer756-Dec-05 4:59
sdancer756-Dec-05 4:59 
Questionpass a CString to a TCHAR myVar[] Pin
si_696-Dec-05 4:48
si_696-Dec-05 4:48 
AnswerRe: pass a CString to a TCHAR myVar[] Pin
David Crow6-Dec-05 4:53
David Crow6-Dec-05 4:53 
GeneralRe: pass a CString to a TCHAR myVar[] Pin
toxcct6-Dec-05 6:04
toxcct6-Dec-05 6:04 
GeneralRe: pass a CString to a TCHAR myVar[] Pin
Maximilien6-Dec-05 6:28
Maximilien6-Dec-05 6:28 

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.