Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 487393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:36:01+00:00 2026-05-13T01:36:01+00:00

I am trying to debug a win32 windows-mobile app that I am largely unfamiliar

  • 0

I am trying to debug a win32 windows-mobile app that I am largely unfamiliar with.

I am forcing a periodic InvalidateRect(hWnd,NULL,FALSE) and each time I do the WM_PAINT method is being called, but the GetUpdateRect() returns 0,0,0,0, and obviously nothing that is drawn is visible. GetWindowRect() and GetClientRect() show the window is there and is not zero sized.

I am guessing that the window is completely obscured by its children. Its a maze trying to find these children in the code, however.

How should I approach debugging this? E.g. can I list these children and their positions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:36:01+00:00Added an answer on May 13, 2026 at 1:36 am

    I imagine you’re aware of this already, but just in case, if your call to GetUpdateRect is following a call to BeginPaint while processing WM_PAINT then receiving an empty rect is the expected behavior. See the remarks in the docs for GetUpdateRec:

    The update rectangle retrieved by the BeginPaint function is identical to that retrieved by GetUpdateRect.

    BeginPaint automatically validates the update region, so any call to GetUpdateRect made immediately after the call to BeginPaint retrieves an empty update region.

    You can enumerate child windows with EnumChildWindows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to debug a program on Windows I can't seem to find where
I am trying to debug a strange issue with users that have LogMeIn installed.
I'm trying to debug and resolve some issues with a Win32 macro application written
I am trying to debug OpenERP 6.1 on Windows 7 x64. I have Python
I'm trying to debug a C/C++ Win32 DLL with WinDbg, but at the moment
I have a Qt project that I'm trying to compile with jom on Windows
i'm trying to debug a program, that i don't have the source code for:
I'm trying to debug a .NET 3.5, 32 bit application running on Windows 7/64
I am having real problems trying debug my code to malfunctioning print statements. I
Trying to debug an issue with a server and my only log file is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.