Click here to Skip to main content
16,005,241 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: :-: HInstance Question :-: Pin
Programm3r8-Oct-06 21:28
Programm3r8-Oct-06 21:28 
AnswerRe: :-: HInstance Question :-: Pin
Stephen Hewitt8-Oct-06 21:39
Stephen Hewitt8-Oct-06 21:39 
GeneralRe: :-: HInstance Question :-: Pin
Programm3r8-Oct-06 21:42
Programm3r8-Oct-06 21:42 
QuestionWhy GetWindowRect function gives wrong values for context menus? Pin
Hemant kulkarni8-Oct-06 20:37
Hemant kulkarni8-Oct-06 20:37 
AnswerRe: Why GetWindowRect function gives wrong values for context menus? Pin
Stephen Hewitt8-Oct-06 21:06
Stephen Hewitt8-Oct-06 21:06 
GeneralRe: Why GetWindowRect function gives wrong values for context menus? Pin
Hemant kulkarni8-Oct-06 21:39
Hemant kulkarni8-Oct-06 21:39 
GeneralRe: Why GetWindowRect function gives wrong values for context menus? Pin
Stephen Hewitt8-Oct-06 21:50
Stephen Hewitt8-Oct-06 21:50 
GeneralRe: Why GetWindowRect function gives wrong values for context menus? Pin
Hemant kulkarni8-Oct-06 23:45
Hemant kulkarni8-Oct-06 23:45 
Hi,

Yes. This is C# code calling the Win32API

This code is called every 50ms by a timer where is finds the foreground window and moves the C# Form to the new location.

But when uses right clicks on any icon in system tray the foreground window position returned by GetWindowRect is incorrect.

Any guss why if givers wrong values?

Regards,
Hemant.
GeneralRe: Why GetWindowRect function gives wrong values for context menus? Pin
Stephen Hewitt9-Oct-06 0:16
Stephen Hewitt9-Oct-06 0:16 
Questionsmart technology access from C# Pin
ravi khadka8-Oct-06 19:33
ravi khadka8-Oct-06 19:33 
NewsRe: smart technology access from C# Pin
Rajesh R Subramanian8-Oct-06 20:12
professionalRajesh R Subramanian8-Oct-06 20:12 
AnswerRe: smart technology access from C# Pin
Hamid_RT8-Oct-06 21:08
Hamid_RT8-Oct-06 21:08 
QuestionCOM ATL EXE program Pin
Sakthiu8-Oct-06 19:11
Sakthiu8-Oct-06 19:11 
AnswerRe: COM ATL EXE program Pin
Rinu_Raj8-Oct-06 19:28
Rinu_Raj8-Oct-06 19:28 
AnswerRe: COM ATL EXE program Pin
Hamid_RT8-Oct-06 21:09
Hamid_RT8-Oct-06 21:09 
QuestionVirtual memory usage of a process in c++ Pin
Manish_Home8-Oct-06 19:02
Manish_Home8-Oct-06 19:02 
AnswerRe: Virtual memory usage of a process in c++ Pin
John M. Drescher8-Oct-06 19:10
John M. Drescher8-Oct-06 19:10 
GeneralRe: Virtual memory usage of a process in c++ Pin
Manish_Home8-Oct-06 19:28
Manish_Home8-Oct-06 19:28 
GeneralRe: Virtual memory usage of a process in c++ Pin
John M. Drescher9-Oct-06 2:15
John M. Drescher9-Oct-06 2:15 
GeneralRe: Virtual memory usage of a process in c++ Pin
Manish_Home9-Oct-06 2:24
Manish_Home9-Oct-06 2:24 
GeneralRe: Virtual memory usage of a process in c++ Pin
John M. Drescher9-Oct-06 2:25
John M. Drescher9-Oct-06 2:25 
GeneralRe: Virtual memory usage of a process in c++ Pin
Manish_Home9-Oct-06 18:53
Manish_Home9-Oct-06 18:53 
GeneralRe: Virtual memory usage of a process in c++ Pin
John M. Drescher11-Oct-06 5:22
John M. Drescher11-Oct-06 5:22 
GeneralRe: Virtual memory usage of a process in c++ Pin
Manish_Home11-Oct-06 23:06
Manish_Home11-Oct-06 23:06 
GeneralRe: Virtual memory usage of a process in c++ Pin
John M. Drescher18-Oct-06 4:03
John M. Drescher18-Oct-06 4: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.