how to convert from dialog units to pixels?

This is a discussion on how to convert from dialog units to pixels? within the Windows Programming forums, part of the Platform Specific Boards category; Hullo, how are you doing guys?? I'm currently programming a simple card game UNO using C++ and Microsoft visual studio ...

  1. #1
    "Why use dynamic memory?"
    Join Date
    Aug 2006
    Posts
    186

    how to convert from dialog units to pixels?

    Hullo, how are you doing guys??
    I'm currently programming a simple card game UNO using C++ and Microsoft visual studio pro 2005.
    I designed modeless dialog box to be my main window that the players are going to play on, but when it came to drawing some graphics, they were drawn in unwanted position on the main window, because the dialog designer gave me the coords in dialog units, but the functions used to draw use pixels. So can any one tell me a way of how to change my project properties, or the modeless dialog it self so it uses pixels??

    thank you in advance
    "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."-Bjarne Stroustrup
    Nearing the end of finishing my 2D card game! I have to work on its 'manifesto' though <_<

  2. #2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. make Child Dialog not Popup?
    By Zeusbwr in forum Windows Programming
    Replies: 5
    Last Post: 04-08-2005, 03:42 PM
  2. How to convert inches into pixels?
    By jat421 in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 01-30-2005, 02:32 PM
  3. Getting the position of a dialog without parent on the screen
    By stormbringer in forum Windows Programming
    Replies: 1
    Last Post: 08-27-2003, 03:59 AM
  4. The relation between Font Size & Dialog Units
    By Templario in forum Windows Programming
    Replies: 4
    Last Post: 02-27-2003, 05:32 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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