How does XP decide an app is hung?

B

Byron

I have a window that displays text to the user. The text gets changed
when the WM_PAINT message comes through. The problem is that I'm
upgrading from NTE to XPE, NTE displayed the text without any problems.
With XPE, Windows adds the (Not Responding) message to the title bar
and I stop receiving the WM_PAINT message. Any bit of information will
be helpful. Thanks.

Here is the pertinent code
CreateWindow("SwUpgrade", tempBuf, WS_OVERLAPPED | WS_DLGFRAME,
WND_X_COORD, WND_Y_COORD, WND_WIDTH, WND_HEIGHT, NULL, NULL, NULL,
NULL);

ShowWindow(hWnd,SW_SHOWNORMAL);
ShowWindow(hWnd,SW_RESTORE);

ExtTextOut(hdc, // - handle to device context
dcRect.right/2,dcRect.top+23, // - reference point
ETO_OPAQUE | ETO_CLIPPED, // - text-output options
NULL, // - optional clipping and/or
opaquing rectangle
swupgdeObj.szBuff[1], // - points to string
strlen(swupgdeObj.szBuff[1]), // - number of characters in
string
NULL) // - pointer to array of
intercharacter spacing
 
K

KM

Byron,

You should be "porting" your application to XP Pro first and then move to XPe.
Your questions is rather to a Win32 dev NG.

Anyway, there should be no problem to update a window text in WM_UPDATE handler. This is true as long as you properly create and
manage thread message loop.
you didn't show the entire code so it is hard to guess where the problem may be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top