From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: graphical output on win xp with gnavi-package
Date: Fri, 8 Apr 2005 16:52:22 +0200
Date: 2005-04-08T16:52:26+02:00 [thread overview]
Message-ID: <1f533a5u5ryw7.svvwqn8tb3zu.dlg@40tude.net> (raw)
In-Reply-To: e499e546.0504070745.7df0f90b@posting.google.com
On 7 Apr 2005 08:45:58 -0700, Duke Luke wrote:
> now most things are working as they're supposed to.
> i programmed a nice tetris with the gnavi package and everything is
> great.
>
> i have only one problem left:
> when i create a window (canvas) and paint in it, it works as long as i
> dont change its focus.
> any time i change its focus, the whole window becomes blank and
> nothing can be drawn on it further.
> => this means, one cant even click on the window to activize it,
> because that would make it blank!
>
> why does this happen
Because Windows makes "erase background" when it wants to re-draw your
window.
> and what can i do about it?
You have to process WM_PAINT.
> do i have to use another package? which?
Perhaps, you do something wrong with gnavi. I didn't use it, so I can't
tell. It seems that neither your program nor gnavi process WM_PAINT, so
once erased window stay blank. As a guess, maybe you have told to gnavi (or
else it is always so) that your window is "owner-draw", so it does not
attempt to do anything about WM_PAINT.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2005-04-08 14:52 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-07 15:45 graphical output on win xp with gnavi-package Duke Luke
2005-04-07 23:32 ` Randy Brukardt
2005-04-08 13:57 ` Duke Luke
2005-04-08 18:33 ` Randy Brukardt
2005-04-08 14:52 ` Dmitry A. Kazakov [this message]
2005-04-08 18:47 ` Duke Luke
2005-04-08 20:21 ` Dmitry A. Kazakov
2005-04-08 20:41 ` Gautier Write-only
2005-04-08 20:42 ` tmoran
2005-04-09 11:51 ` Duke Luke
2005-04-09 18:30 ` tmoran
2005-04-11 5:37 ` Duke Luke
2005-04-12 16:18 ` Duke Luke
2005-04-12 17:24 ` tmoran
2005-04-13 15:19 ` Duke Luke
2005-04-13 18:16 ` tmoran
2005-04-14 6:24 ` Duke Luke
2005-04-14 17:54 ` tmoran
2005-04-15 10:04 ` Duke Luke
2005-04-15 17:56 ` tmoran
2005-04-16 9:58 ` Duke Luke
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox