techPowerUp! Forums

techPowerUp! Forums (http://www.techpowerup.com/forums/index.php)
-   Programming & Webmastering (http://www.techpowerup.com/forums/forumdisplay.php?f=52)
-   -   Windows programming question! (http://www.techpowerup.com/forums/showthread.php?t=152820)

Aleksander Sep 29, 2011 08:44 PM

Windows programming question!
 
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);
}


W1zzard Sep 29, 2011 09:04 PM

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

Aleksander Sep 29, 2011 09:07 PM

Is there a way to turn the window upside down for example?

Kreij Sep 29, 2011 11:57 PM

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.


All times are GMT. The time now is 12:30 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.