Click here to Skip to main content
15,901,666 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Relationship between Latency and Frame Rate Pin
CPallini12-Mar-14 1:52
mveCPallini12-Mar-14 1:52 
GeneralRe: Relationship between Latency and Frame Rate Pin
Django_Untaken12-Mar-14 2:44
Django_Untaken12-Mar-14 2:44 
AnswerRe: Relationship between Latency and Frame Rate Pin
Rage12-Mar-14 4:36
professionalRage12-Mar-14 4:36 
GeneralRe: Relationship between Latency and Frame Rate Pin
jeron112-Mar-14 7:52
jeron112-Mar-14 7:52 
QuestionGet data from Grid Control Pin
pandit8411-Mar-14 21:56
pandit8411-Mar-14 21:56 
AnswerRe: Get data from Grid Control Pin
Richard MacCutchan11-Mar-14 22:56
mveRichard MacCutchan11-Mar-14 22:56 
AnswerRe: Get data from Grid Control Pin
Rage12-Mar-14 4:40
professionalRage12-Mar-14 4:40 
QuestionGetWindowRgn API returns ERROR Pin
atm.menon11-Mar-14 16:26
atm.menon11-Mar-14 16:26 
In My application, I have used the following code to get the region of a dialog.
HRGN hRgn = CreateRectRgn( 0, 0, 0, 0 );
int nRet = GetWindowRgn( hRgn );
if(ERROR == nRet)
{
   DWORD dw= GetLastError();
   //Log
 }

The problem is that, sometimes "GetWindowRgn" returns error "invalid handle" even if CreateRectRgn returns a non-null handle which is used for GetWindowRgn.

I have set the region in onSize(). So dialog have region.Also after GetWindowRgn returns error, when i call GetWindowRgn() again, second call is working fine !!!

Issue is reproduced only sometimes in a Windows 7 machine.
Anyone already faced similar issue?

Thanks,
Arun

modified 12-Mar-14 0:20am.

AnswerRe: GetWindowRgn API returns ERROR Pin
«_Superman_»11-Mar-14 22:18
professional«_Superman_»11-Mar-14 22:18 
QuestionRe: GetWindowRgn API returns ERROR Pin
Richard MacCutchan11-Mar-14 22:53
mveRichard MacCutchan11-Mar-14 22:53 
AnswerRe: GetWindowRgn API returns ERROR Pin
atm.menon12-Mar-14 15:54
atm.menon12-Mar-14 15:54 
GeneralRe: GetWindowRgn API returns ERROR Pin
Richard MacCutchan12-Mar-14 22:10
mveRichard MacCutchan12-Mar-14 22:10 
QuestionMFC class wizard comment delimiters [Solved] Pin
Theo Buys11-Mar-14 2:12
Theo Buys11-Mar-14 2:12 
AnswerRe: MFC class wizard comment delimiters Pin
Jochen Arndt11-Mar-14 2:33
professionalJochen Arndt11-Mar-14 2:33 
AnswerRe: MFC class wizard comment delimiters Pin
a ray of sunshine14-Mar-14 17:03
a ray of sunshine14-Mar-14 17:03 
QuestionBoost::Log DB backend? Pin
Marco Bertschi10-Mar-14 23:56
protectorMarco Bertschi10-Mar-14 23:56 
QuestionHow to detect touch input globally instead of mouse clicking? Pin
cedricvictor9-Mar-14 16:26
cedricvictor9-Mar-14 16:26 
AnswerRe: How to detect touch input globally instead of mouse clicking? Pin
«_Superman_»9-Mar-14 20:13
professional«_Superman_»9-Mar-14 20:13 
QuestionHow do I access / use base class method declared private? Pin
Vaclav_9-Mar-14 13:28
Vaclav_9-Mar-14 13:28 
AnswerRe: How do I access / use base class method declared private? Pin
Richard Andrew x649-Mar-14 17:17
professionalRichard Andrew x649-Mar-14 17:17 
GeneralRe: How do I access / use base class method declared private? Pin
Vaclav_10-Mar-14 1:30
Vaclav_10-Mar-14 1:30 
GeneralRe: How do I access / use base class method declared private? Pin
Freak3010-Mar-14 2:21
Freak3010-Mar-14 2:21 
GeneralRe: How do I access / use base class method declared private? SOLVED Pin
Vaclav_10-Mar-14 10:26
Vaclav_10-Mar-14 10:26 
AnswerRe: How do I access / use base class method declared private? Pin
«_Superman_»10-Mar-14 5:21
professional«_Superman_»10-Mar-14 5:21 
QuestionMDI frame "Window" menu / submenu dynamics - where to start? Pin
Vaclav_9-Mar-14 5:07
Vaclav_9-Mar-14 5:07 

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.