| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Funny Draw Problem |
I have a really funny draw problem that I don't know how to solve,
much less what it is.
When some other window lays over the text that I'm writing it "bleeds"
all over the desktop. I can reproduce it and has of now the only way
to solve it, is to not place anything over that area, but other people
I don't think will like that.
Here is the paint part of my code...
/************** Code *********************/
/* Define parameters by type */
HAB hab; /* PM anchor block handle */
PSZ pszErrMsg;
HPS hps=0; /* Presentation space handle */
POINTL pt; /* String screen coordinates */
HMQ hmq; /* Message queue handle */
HWND hwndClient = NULLHANDLE; /* Client area window handle */
HWND hwndFrame = NULLHANDLE; /* Frame window handle */
QMSG qmsg; /* Message from message queue */
ULONG flCreate; /* Window creation control flags*/
RECTL rect;
node_t node;
INT main (VOID)
{
/*** cut out setup ****/
while (1)
{
if ( Toggle_NS )
{
while( WinPeekMsg( hab, &qmsg, 0L, 0, 0, PM_REMOVE ) &&
(qmsg.msg != WM_QUIT) ) { WinDispatchMsg( hab,
&qmsg ); }
if (qmsg.msg == WM_QUIT) break;
WinInvalidateRect( hwndClient, 0L, FALSE );
hps = WinBeginPaint ( hwndClient, 0L, 0L );
WinQueryWindowRect( hwndClient, &rect);
pt.x = 20;
pt.y = rect.yTop-30;
GpiSetColor( hps, CLR_NEUTRAL );
GpiSetBackColor( hps, CLR_DEFAULT );
GpiSetBackMix( hps, BM_OVERPAINT );
GpiCharStringAt( hps, &pt, (LONG)strlen(szNode),
szNode ); WinEndPaint(hps); DosSleep(300); }
}
}
Thanks in advance for the help.
---Brandt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
everettb{at}tahoma.cwu.edu
[TeamOS/2]
Branic{at}1:3407/18
---
þ KWQ/2 1.2i þ The longer the title, the less important the job.
* Origin: Sierra Hotel -- Beyond G-LOC (1:3407/18)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 3407/18 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.