1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Windows programming question!

Discussion in 'Programming & Webmastering' started by Aleksander, Sep 29, 2011.

  1. Aleksander

    Joined:
    Dec 2, 2009
    Messages:
    3,254 (1.79/day)
    Thanks Received:
    304
    Ok, so i started windows programming and i simply love it :)
    I just want to make the windows i create in my own language, but don't know how to do that
    Can anyone help me?
    Here is the code:
    Code:
    #include <windows.h>
    int WINAPI WinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpCmdLine,
    int nCmdShow)
    {
    MessageBox(NULL, "Warning", "home",  MB_YESNOCANCEL | MB_ICONSTOP);
    }
     
  2. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    15,007 (3.90/day)
    Thanks Received:
    11,877
    there are many ways to translate your application, there is no single right way.

    the win32 api gives you functions to determine the currently set locale, the rest is up to you
     
  3. Aleksander

    Joined:
    Dec 2, 2009
    Messages:
    3,254 (1.79/day)
    Thanks Received:
    304
    Is there a way to turn the window upside down for example?
     
  4. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.88/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    Yes, there is always a way to do something when you are programming.

    In the case of turning a window upside-down, you will need to sub-class the window class (to try to maintain some of the built in functionality), override the draw methods with your own implementation of how a window should appear (user drawn control) and then most likely redo all of the resizing, moving, and control location in the window to facilitate the now upside-down window.

    Shouldn't be harder that something like skiing through a revolving door.
     
    Aleksander says thanks.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page