|
Have you tried GetLocaleInfo() .
Call the function with LCTYPE set to:
LOCALE_ILANGUAGE - IIRC gets the language identifier.
LOCALE_ITIME - Will get 12 / 24 hr format
to get the appropriate information.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
ah lots of good stuff there, I'll try that.
Thanks!
|
|
|
|
|
I'm really struggling to find anything that would enable me to do this. It's driving me crazy, as i know everything about the title bar now, except this.
I'm looking for the kind of options got in NT Display>Appearance tab where the title bar Item has the option to set a variety of properties, including font, colour, etc.
I get the size of it, and the size of the icon, but the one thing I can't do is the size / font / color of the text.
Anyone got any ideas?
Cheers
Cata
|
|
|
|
|
SystemParamtersInfo (SPI_GETNONCLIENTMETRICS);
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Interesting. This method is completely undocumented in MSDN.
Can you tell me which DLL it's in? And where I can find a list of related Enums + structs?
Cheers
Cata
|
|
|
|
|
The Catalyst wrote:
This method is completely undocumented in MSDN.
It is?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/systemparametersinfo.asp
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Ooops... pasted with paranthesis...
*sheepish grin*
|
|
|
|
|
MSDN is a great resource, but finding the precise thing you're looking for can be a bear.
Software Zen: delete this;
|
|
|
|
|
I have a ClistCtrl derived class which is ownerdrawn and virtual.
I have been using it quit some time now without any problems.
But when I tried to use this class in a application with manifest included, the darn thing doesn't work proper.
I'm having a lot of paint problems.
Every mousemove over an item causes this item to be redraw.
Does anyone have an idea what is causing these problems.
|
|
|
|
|
Can someone tell me how an irregular dialog box can be displyed using MFC?Thanks in advance.
Dipeka.A.J
|
|
|
|
|
|
Here is an example.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I am developing a project using C instead of visual c++, and when I call for example CreateSurface I must use following syntax:
IDirectDraw_CreateSurface(pdd,&ddsd,&pdds,NULL)
or
pdd->lpVtbl->CreateSurface(&ddsd,&pdds,NULL)
Otherwise I get an error like CreateSurface missing method...
Someone told me that :
All the COM functions are in the virtual method table of the
object. c++ handles that, but in c you have to do it manually.
use the macros defined in ddraw.h.
This seems strange to me is there any simplier way to do this?
And when I use:
DirectDrawCreate(NULL, &p->lpDD, NULL )
I get a compiler error:
error LNK2001: unresolved external symbol _DirectDrawCreate
So how should I call DirectDrawCreate....
Is there any "smart" compiler settings that I can use to let the compiler to treat the Direct draw functions as they where in Visual c++ ???
I have included ddraw.h and linked to ddraw.lib if you wonder...
Please help, cheers Dani
|
|
|
|
|
hi!!
i'm doing my MCS and new 2 the subject. can anyone help me on developing a media player component? - V.G
|
|
|
|
|
http://www.codeproject.com/Purgatory/media_player.asp
Visit that link and download a free player. U'll get some idea. Use ActiveX controls
Dipeka.A.J
|
|
|
|
|
Hello !
My program is sometimes throwing unhandled exeption. I would like to handle this exeption to take some appropriate actions (such as print debug informations in a file).
So, I would like to know first how to get this exception and call a function. And second, I need some advices to debug my program: in fact, these exceptions occurs very rarely so I need a way to know what happens exactly (so, for example at wich line of code, the state of the latest variables, ...). Any advice will be great
Thanks
|
|
|
|
|
Take a look at try and catch . You can then perform appropriate error handling in the catch section.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Is there a way to paint pictures without using WM_PAINT.
Thanks in Advance
Dipeka.A.J
|
|
|
|
|
Do you mean without sending WM_PAINT message or without handling WM_PAINT event?
ARSALAN MALIK
|
|
|
|
|
I mean WM_PAINT message.
Dipeka.A.J
|
|
|
|
|
You can get pointer to device context (CDC) by using any of these functions: GetClientDC(), GetPaintDC() . You will not need to send/handle WM_PAINT message
ARSALAN MALIK
|
|
|
|
|
dipeka wrote:
Is there a way to paint pictures without using WM_PAINT.
Probably handle WM_PAINT as usual. When you need something repainted then invalidate that area (or the whole client area) and your paint handler will do the rest. But I am not so sure what you try to achieve.
In Win32 InvalidateRect() UpdateWindow() that is.
/Moak
|
|
|
|
|
Hi all!
I'm trying to find some good exmples for C++ or VB to hook some APIs (To intercept File Execution) and also examples about : How to read a Boot Sector and Master Boot Records (MBR)...
I'm making an Anti-Virus technology and these points are needed..
I appreciate your help!
Thanks for your time guys..
|
|
|
|
|
Radwan Aladdin wrote:
How to read a Boot Sector and Master Boot Records (MBR)...
Use CreateFile() - Read up the "Disk Devices" section of the CreateFile() API in MSDN. Use this with caution.
* Artificial intelligence is no match for natural stupidity! *
|
|
|
|
|
Any links on the net please?
What can I do with this?? I mean can I then read the Boot Master Records??
I think the CreateFile() API used for the Execution Intercepting..
|
|
|
|