nanogui: Two microwindows questions
Subject:
Re: [nanogui] Two microwindows questions
From:
"Greg Haerr" ####@####.####
Date:
16 Nov 2002 18:19:29 -0000
Message-Id: <083f01c28d9b$5468b230$6401a8c0@gregnewport>
> First, does anyone have a code example using the functions in kbd_ipaq.c?
> It's obvious that what the open and close functions do. Is the standard
way
> to find out if a key has been pressed and which one to setup a timer and
> continuously poll IPAQ_Read(...)?
No thats not standard, but sometimes required when the kernel
button interface is screwed up. This is probably fixed in a later
version of the ipaq kernel.
but I want the interior of the
> window to be transparent (not invisible). The GDI API mentions that you
can
> stipulate the style of WS_EX_TRANSPARENT,
Win32 uses window procedures (winprocs) and messages
to make everything happen. The window background
is drawn by DefaultWindowProc after the WM_ERASEBKGND
message is sent to your window procedure and passed along.
If you catch that message and return 1, the background won't
be drawn. I think this method is used in some of the win32
sample code, src/demos/mwin/*.c
Regards,
Greg