Click here to Skip to main content
15,897,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerTHIS is NOT a correct subject :( Pin
toxcct21-Sep-06 21:47
toxcct21-Sep-06 21:47 
AnswerRe: //--------- i need some help please -------------// Pin
Eytukan21-Sep-06 21:51
Eytukan21-Sep-06 21:51 
GeneralRe: //--------- i need some help please -------------// Pin
Bravoone_200621-Sep-06 23:06
Bravoone_200621-Sep-06 23:06 
QuestionError in OpenFileMapping function. Pin
cathy_d'souza21-Sep-06 19:33
cathy_d'souza21-Sep-06 19:33 
AnswerRe: Error in OpenFileMapping function. Pin
Hamid_RT21-Sep-06 20:00
Hamid_RT21-Sep-06 20:00 
QuestionRe: Error in OpenFileMapping function. Pin
prasad_som21-Sep-06 20:04
prasad_som21-Sep-06 20:04 
QuestionPro grammatically importing digital certificate which only contains a public key Pin
Sudhir Mangla21-Sep-06 18:19
professionalSudhir Mangla21-Sep-06 18:19 
QuestionHow to detect full-screen window? Pin
jipai21-Sep-06 17:06
jipai21-Sep-06 17:06 
Given a HWND, is there a reliable way or API to detect if it's a full screen window?
I was trying the following

// this gives screen resolution, such as 1280 x 1024
HWND deskWnd= GetDesktopWindow();
RECT deskRect;
GetWindowRect(deskWnd, &deskRect);

HWND topWnd = GetTopWindow(NULL);
RECT topRect;
GetWindowRect(topWnd, &topRect);

// now compare deskRect and topRect, if both are the same, topWnd is a full screen window.


But sometimes the topRect's top, bottom, left and right values are all negative, or represent a smaller rect than deskRect even though topWnd is indeed a full screen window.

I've also tried with GetForegroundWindow instead of GetTopWindow, but still no affirmative result.

Anyone knows how? Thanks.
AnswerRe: How to detect full-screen window? Pin
Steve Echols21-Sep-06 17:59
Steve Echols21-Sep-06 17:59 
GeneralRe: How to detect full-screen window? Pin
jipai21-Sep-06 22:13
jipai21-Sep-06 22:13 
QuestionKeeping window within boundry, win32 sdk [modified] Pin
beeejay21-Sep-06 16:19
beeejay21-Sep-06 16:19 
AnswerRe: Keeping window within boundry, win32 sdk Pin
Nibu babu thomas21-Sep-06 17:24
Nibu babu thomas21-Sep-06 17:24 
GeneralRe: Keeping window within boundry, win32 sdk Pin
beeejay21-Sep-06 17:34
beeejay21-Sep-06 17:34 
GeneralRe: Keeping window within boundry, win32 sdk Pin
Nibu babu thomas21-Sep-06 17:43
Nibu babu thomas21-Sep-06 17:43 
GeneralRe: Keeping window within boundry, win32 sdk Pin
beeejay21-Sep-06 17:56
beeejay21-Sep-06 17:56 
GeneralRe: Keeping window within boundry, win32 sdk Pin
Nibu babu thomas21-Sep-06 18:23
Nibu babu thomas21-Sep-06 18:23 
GeneralRe: Keeping window within boundry, win32 sdk Pin
beeejay21-Sep-06 18:34
beeejay21-Sep-06 18:34 
GeneralRe: Keeping window within boundry, win32 sdk Pin
Nibu babu thomas21-Sep-06 18:36
Nibu babu thomas21-Sep-06 18:36 
GeneralRe: Keeping window within boundry, win32 sdk Pin
beeejay21-Sep-06 18:47
beeejay21-Sep-06 18:47 
GeneralRe: Keeping window within boundry, win32 sdk Pin
Nibu babu thomas21-Sep-06 19:03
Nibu babu thomas21-Sep-06 19:03 
QuestionComposite Control Info Pin
Demian Panello21-Sep-06 16:14
Demian Panello21-Sep-06 16:14 
AnswerRe: Composite Control Info Pin
Rick York21-Sep-06 16:45
mveRick York21-Sep-06 16:45 
AnswerRe: Composite Control Info Pin
Hamid_RT21-Sep-06 18:41
Hamid_RT21-Sep-06 18:41 
QuestionWarning messages Pin
dacky21-Sep-06 15:36
dacky21-Sep-06 15:36 
AnswerRe: Warning messages Pin
Stephen Hewitt21-Sep-06 16:03
Stephen Hewitt21-Sep-06 16:03 

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.