MoveToEx() & LineTo() functions

This is a discussion on MoveToEx() & LineTo() functions within the Windows Programming forums, part of the Platform Specific Boards category; Originally Posted by DaveH Where are you calling DrawWithPen()? Maybe your window needs to be invalidated so a Paint message ...

  1. #16
    Registered User
    Join Date
    Apr 2008
    Posts
    610
    Quote Originally Posted by DaveH View Post
    Where are you calling DrawWithPen()? Maybe your window needs to be invalidated so a Paint message is sent. Try running the program, then covering it with another window then bring your window back to the top. Does it draw now?
    DrawWithPen(); is called as you see it in the code i submitted... QUEST compiles everything in one space, you don't even need function prototypes for your user functions. Also, there isn't any main() function... I'm not sure how to convert to different windows as you mention. I suspect the tool am using does not support the Pen Object and few other API functions. I noticed that QUEST books does not have any info about the Pen object or its functions, but, by including a header file i found in the QUEST includes folder (Gdiwin.h) most of the Win32 API functions compile with no errors Question i have is if a program compiles, does it means it will work?

    This is now frustrating, being sitting in the same thing for 3 days...

  2. #17
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    I have no idea what QUEST is, so I doubt I can help.

  3. #18
    Registered User
    Join Date
    Apr 2008
    Posts
    610
    Quote Originally Posted by DaveH View Post
    I have no idea what QUEST is, so I doubt I can help.
    Got this info today about quest functions...

    There are three types of function calls that can be created with the Function Call object in Quest. In Quest 6.0 these are seen in the three categories shown in the dialog box:

    * Miscellaneous Functions used for controlling Windows. These include the "Windows API" functions to control other applications, use ODBC, put up message boxes, and thousands of other things. (Also seen in this category would be functions that you've created yourself and put in DLL's that you've added through the Extension Manager of Quest.)
    * Quest C Functions available only in Quest to control objects in Quest, to control frames, send messages between frames, get the name of the current frame, to shut down threads, etc.
    * Standard C Functions for performing common programming needs. These are all the standard C functions you would have learned in college in a C or C++ class. With these you can get the date and time from the computer, do mathematical functions, concatenate strings, write to data files, etc.

    The Quest and C function calls are documented in the Quest manuals. But the other functions--the Windows API calls or those you create yourself--are not documented in the Quest manuals because they aren't really part of Quest, they're an extension of Quest into other realms.

    There are a number of resources to help you with these functions including various books like the "Windows API Bible." You can also get access to the same documentation that Windows programmers use from the Microsoft web site:

    www.msdn.microsoft.com

    This site has a complete reference for Windows API calls that can be used within Quest using the Function object. Upon arriving at the MSDN web site, scroll down to the Search section. Enter the specific API call you would like help with, such as "GetCursorPos". You will be taken to a listing of web pages that describe the use of that function, one of which (in this case the first) gives the full syntax, return values, etc. If instead you wish to see a listing of all functions to control the cursor, useful especially when you don't know the function's name, you might simply type "cursor functions" into the search field.
    http://demo.allencomm.com/elearning_...ge_base/kb.cfm... If interested you may type API as a keyword from the link, might give you some little QUEST background

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Void Functions Help
    By bethanne41 in forum C++ Programming
    Replies: 1
    Last Post: 05-09-2005, 06:30 PM
  2. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 12:50 PM
  3. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  4. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 02:41 PM
  5. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 06:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21