Click here to Skip to main content
15,910,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CRect constructor-beginner question Pin
7stud18-Aug-03 11:22
7stud18-Aug-03 11:22 
GeneralRe: CRect constructor-beginner question Pin
Neville Franks18-Aug-03 11:30
Neville Franks18-Aug-03 11:30 
GeneralRe: CRect constructor-beginner question Pin
Michael Dunn18-Aug-03 11:51
sitebuilderMichael Dunn18-Aug-03 11:51 
GeneralRe: CRect constructor-beginner question Pin
7stud19-Aug-03 18:01
7stud19-Aug-03 18:01 
GeneralStay On Top - Advice Needed Pin
Norman Bates18-Aug-03 10:26
Norman Bates18-Aug-03 10:26 
GeneralRe: Stay On Top - Advice Needed Pin
valikac18-Aug-03 11:54
valikac18-Aug-03 11:54 
GeneralRe: Stay On Top - Advice Needed Pin
Hosam Aly Mahmoud18-Aug-03 12:04
Hosam Aly Mahmoud18-Aug-03 12:04 
GeneralRe: Stay On Top - Advice Needed Pin
Hosam Aly Mahmoud18-Aug-03 12:27
Hosam Aly Mahmoud18-Aug-03 12:27 
As I tried to look it up, I saw that you may be able to handle it as follows:
case WM_KILLFOCUS:
   if ( wParam != 0 )
   {
      WINDOWINFO wi;
      GetWindowInfo( (HWND)wParam, &wi ); // sorry, did not check for errors
      if ( (wi.dwExStyle & WS_EX_TOPMOST) == WS_EX_TOPMOST )
      {
         SetWindowPos( (HWND)wParam, HWND_TOP,
            0, 0, 0, 0, // ignored
            SWP_NOMOVE | SWP_NOSIZE |
            SWP_NOOWNERZORDER | SWP_NOSENDCHANGING );
      }
   }
   return 0;


Hope this helps (and hope I am not wrong!).

Hosam Aly Mahmoud


GeneralRe: Stay On Top - Advice Needed Pin
Norman Bates19-Aug-03 0:53
Norman Bates19-Aug-03 0:53 
GeneralRe: Stay On Top - Advice Needed Pin
Hosam Aly Mahmoud19-Aug-03 5:03
Hosam Aly Mahmoud19-Aug-03 5:03 
GeneralCDataGrid is not in MSDN Pin
sdfdsfa18-Aug-03 10:24
sdfdsfa18-Aug-03 10:24 
GeneralRe: CDataGrid is not in MSDN Pin
David Crow18-Aug-03 10:50
David Crow18-Aug-03 10:50 
GeneralInstalling Visual Studio .NET 2003 Pin
Rohde18-Aug-03 10:21
Rohde18-Aug-03 10:21 
GeneralRe: Installing Visual Studio .NET 2003 Pin
valikac18-Aug-03 11:56
valikac18-Aug-03 11:56 
GeneralAssertion error due to imagelist Pin
Binayak18-Aug-03 9:07
Binayak18-Aug-03 9:07 
Generalcan't get the debugger to work in visual studio .net Pin
trustno118-Aug-03 9:01
trustno118-Aug-03 9:01 
QuestionFile Tree Control??? Pin
Bob Stanneveld18-Aug-03 8:59
Bob Stanneveld18-Aug-03 8:59 
AnswerRe: File Tree Control??? Pin
Shay Harel18-Aug-03 9:12
Shay Harel18-Aug-03 9:12 
GeneralRe: File Tree Control??? Pin
Bob Stanneveld19-Aug-03 2:48
Bob Stanneveld19-Aug-03 2:48 
Questionhow to maximize the window of SDI project Pin
mr200318-Aug-03 8:26
mr200318-Aug-03 8:26 
AnswerRe: how to maximize the window of SDI project Pin
Bob Stanneveld18-Aug-03 8:54
Bob Stanneveld18-Aug-03 8:54 
AnswerRe: how to maximize the window of SDI project Pin
David Crow18-Aug-03 8:55
David Crow18-Aug-03 8:55 
QuestionDo not allow move Window?? Pin
Rene De La Garza18-Aug-03 8:16
Rene De La Garza18-Aug-03 8:16 
AnswerRe: Do not allow move Window?? Pin
David Crow18-Aug-03 9:00
David Crow18-Aug-03 9:00 
AnswerRe: Do not allow move Window?? Pin
valikac18-Aug-03 12:00
valikac18-Aug-03 12:00 

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.