Slimelite BBS

Windows Programming

Back to EMULATE

From Karsten Chikuri · 1996-04-13 05:23 · #73710 in EMULATE

     Dear "ALL",

               I'm a novice at programming c++ in the windows environment -
and I have the following question:

       I'm trying to design a "simple" graphics program which displays a "grid" from which I'm supposed to be able to click the mouse at the appropriate grid box and have filled with the approriate color using Extg
ExtFloodFill, but I'm having a problem concerning getting mouse input.
       The menu will react to my mouse actions when I click on the appropriate menu item, but the client window simple refuses to react to the mouse actions (all I can get is an indication of whether the right or left button was clicked, but not the x- , y- coordinates where the mouse action took place. I was wondering if I should use GetCursorPos in the following context:

.... Code above
....
while (GetMessage(&msg, NULL, 0,0))
       {
               GetCursorPos(lppt);
               TranslateMessage(&msg);
               DispatchMessage(&msg);
       }

       or should I use GetMessagePos instead of GetcursorPos?

       H .. E .. L .. P !!!!!!!

                       Sincerely,
                               Karsten Chikuri


       I think I'm getting C(++) sick!!! (of course, that's void!!!)

--- FMail 1.0g
 * Origin: All For Christ BBS+- Viroqua, WI 608-637-8049 (1:2360/51)