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

Windows programming question!

Joined
Dec 2, 2009
Messages
3,257 (1.09/day)
Likes
315
System Name Mercury KM-81
Processor Phenom II x4 B50
Motherboard ASUS M4A89GTD PRO
Cooling Cooler Master Hyper TX3
Memory 6GB Ram (4GBx1 Corsair 2GBx1 Nanya)
Video Card(s) PowerColor AX6770 V2.0
Storage 2TB WD Black, 1TB Hitachi, 500 GB WD Blue
Display(s) Philips 247E-LPH 24" 1920x1080
Case Mercury
Audio Device(s) Integrated Realtek
Power Supply Corsair 750TX
Software Windows 7 64-bit
Benchmark Scores Maybe it is time to benchmark :D
#1
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

Administrator
Staff member
Joined
May 14, 2004
Messages
17,188 (3.43/day)
Likes
18,171
Processor Core i7-4790K
Memory 16 GB
Video Card(s) GTX 1080
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 7
#2
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
 
Joined
Dec 2, 2009
Messages
3,257 (1.09/day)
Likes
315
System Name Mercury KM-81
Processor Phenom II x4 B50
Motherboard ASUS M4A89GTD PRO
Cooling Cooler Master Hyper TX3
Memory 6GB Ram (4GBx1 Corsair 2GBx1 Nanya)
Video Card(s) PowerColor AX6770 V2.0
Storage 2TB WD Black, 1TB Hitachi, 500 GB WD Blue
Display(s) Philips 247E-LPH 24" 1920x1080
Case Mercury
Audio Device(s) Integrated Realtek
Power Supply Corsair 750TX
Software Windows 7 64-bit
Benchmark Scores Maybe it is time to benchmark :D
#3
Is there a way to turn the window upside down for example?
 

Kreij

Senior Monkey Moderator
Joined
Feb 6, 2007
Messages
13,817 (3.45/day)
Likes
5,524
Location
Cheeseland (Wisconsin, USA)
#4
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.