|
Hans Bühler's article A bevelline with horizontal and vertical text presents a class that outputs vertical text. Maybe you can investigate its source code to find out how it's done.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Check the nOrientation parameter of CreateFont.
Atul
Don't they know that java is slow.
|
|
|
|
|
Thanks .. I have not tried it as yet . but I think this would surely serve the purpose.
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
Hi everybody,
I'd like to display a a small bitmap inside an edit control (in my special case i want to show an greek omega). Does anybody has clues how to solve this ?
Thanks a lot
Mike
|
|
|
|
|
Can't you use a richedit, and a character set that has the Omega ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
Have you checked CP?I think there was a CEdit that has bitmap
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
I'd start with CEdit::SetMargins to reserve the space for your bitmap. Then, in OnPaint you could draw your bitmap at the margin.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
How can I set the text of a button control vertically like this.
---
| M |
| Y |
| B |
| U |
| T |
---
Is there any style to be set or any custom drawing to be done to get the vertical text settting done?
|
|
|
|
|
Use \n in the caption, so Button for example would be B\nu\nt\nt\no\nn\n1
Serge
|
|
|
|
|
Oh and check multiline property.
|
|
|
|
|
Cool!
I never knew that
Thanks.
Nish
[Signature temporarily down]
|
|
|
|
|
how do you getting timer id what not conflicts with your window base class?
i thought SetTimer() with duplicate id will return 0 but it is not true
do you know any GetTimers(hwnd?)
t!
|
|
|
|
|
The ID needs to be unique only within your CWnd class [assuming you are using this from an MFC CWnd derived class]
In SDK each ID must be unique per HWND
Nish
[Signature temporarily down]
|
|
|
|
|
this i know but how to find there is (in that moment of course only) any already running timer with my id
t!
|
|
|
|
|
Well, it's your program huh. Just use 100,200,300 etc. for your timer IDs. Its better not to have too many timers active at any one time. You dont have to worry about other timers in other programs.
Nish
[Signature temporarily down]
|
|
|
|
|
you always right but not replying to my question
i want to get any error/assert when i'm starting already running id to use different value
and i see no legal way
what when your nr 100 uses your base class? (of course not necessary uses in that moment but that is another kind of problem, we can suppose in testing time i will find conflicts ignoring manual solutions like "use spy tool with filter to wm_timer")
t!
|
|
|
|
|
As far as I see, the only strightforward way to achieve this, is to have an array of timerIDs, which is maintained manually. I dont see any other way to enumerate existing timers. Maybe there are other more advanced means available like global hooks, not sure though...
Nish
[Signature temporarily down]
|
|
|
|
|
No, there's no unique-within-the-class requirement. Just like SDK, it must be unique per CWnd.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Tomasz Sowinski wrote:
No, there's no unique-within-the-class requirement. Just like SDK, it must be unique per CWnd.
That's what I meant when I said CWnd derived class, under the assumption that any particular CWnd derived class would hopefully not deal with more than one HWND
Nish
[Signature temporarily down]
|
|
|
|
|
That's what you wrote in first reply:
Nish [BusterBoy] wrote:
The ID needs to be unique only within your CWnd class [assuming you are using this from an MFC CWnd derived class]
Class is not an object, and vice versa
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Tomasz Sowinski wrote:
Class is not an object, and vice versa
The error is regretted
I am sure glad you were not high school teacher. I wouldn't have passed even now
Thanks anyway Tomasz
Nish
[Signature temporarily down]
|
|
|
|
|
you just have to keep up wich numbers you've already used. In a CList<int,int> for instance or just an static int in the function you use for creating your timers...
-------------------------------
Greetz,
MG
|
|
|
|
|
no enought
f.e. system conrols create their own timers
do you know to say their ids are platform independent?
t!
|
|
|
|
|
what do you mean by system controls?
They are not in your program/Window so they don't bother you.
-------------------------------
Greetz,
MG
|
|
|
|
|
i have class derived from tree or list control and i want to create own timer there
t!
|
|
|
|