|
Can u please send me the link
nave
|
|
|
|
|
Naveen R wrote: Can u please send me the link
Click here[^]
Nibu thomas
Software Developer
|
|
|
|
|
But that dosen't meet my requirment
consider the case i have added a check box with tab stop style. By default windows behaviour, when i click on the the check box it dosen't draw a focus rect. But if i press the tab once and the click on the check box, it will draw the foucs.
In my case i am useing an owner draw chak box. So i don't want to draw a frame rect when ever i have focus but only when the focus comes to check box after the the user have pressed the tab key.
Isn't this correct method ?
is there any way to do this?
nave
|
|
|
|
|
Naveen R wrote: But that dosen't meet my requirment
Why?
When the ODS_FOCUS bit is set this means the item has focus hence you have to draw the focus rect else don't draw the focus rect.
I do it this way.
An eg:
<font color=blue>void</font> CMyButton::DrawItem(LPDRAWITEMSTRUCT lpdi)
{
<font color=green>
<font color=blue>if</font>((lpdi->itemState & ODS_FOCUS) == ODS_FOCUS)
{
<font color=green>
yourDC.DrawFocusRect(...);
}
}
Nibu thomas
Software Developer
|
|
|
|
|
According to the above code the focus rect will be drawn when u just click on the control. isn't it?
nave
|
|
|
|
|
Naveen R wrote: According to the above code the focus rect will be drawn when u just click on the control. isn't it?
Is it working? Did you check?
It works for me with keyboard and mouse. This is the proper way of doing it.
Nibu thomas
Software Developer
|
|
|
|
|
It will draw a focus rect. but i will draw the focus rect when ever the control has foucs. The normal behaviour should be like the one below . Try it out in a dialog based application with one check box having the tab stop property.
1. User click on the check box.
The check box have the foucs but it dosen't draw a focus rect.
2. Now press tab.
A focus rect will be draw in any of the controls in the dialog
3.Now click on the check box
Focus rect is draw in the check box.
nave
|
|
|
|
|
I am a newbie with ActiveX, COM and all. I have a few questions.
1. What is the difference between ActiveX and COM?
2. I have planned to start COM with MS Office automation. Can anyone kindly point out a few STEP BY STEP articles which helps to create COM Addin Controls? (using MFC/VC++/VB)
I got some from MSDN, but I know you guys can give me some real nice data.
Many Thanks.
Aljechin Alexander
|
|
|
|
|
Aljechin 1. What is the difference between ActiveX and COM?
ActiveX control is a COM Object which implements certain set of interfaces.They were intended to provide developers with a generic,COM-based architecture for building re-usabale Microsoft Controls.
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
can any one give clear details
JAYARAJ
|
|
|
|
|
Could any suggest a good book, articles websites etc.. on MFC and socket program.
I've read a lot of great articles here on The Code Project and I am able to create a simple echo server and client program.
But now I want to learn more
Thank you for your time.
|
|
|
|
|
The basic concept of programming for sockets can be read from Windows socket Programming.
It can be easily integrated with MFC with WinSock etc
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
|
hi
There is no Link tab in Project->Settings of my VC++ IDE.I am using VC 6.0 enterprise Edition.What could be the reason behind this?
Thanx in advance
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
What sort of project is it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: What sort of project is it
does the tab settings depend on project too??
anyway the project uses MFC,ATL& COM if that makes difference...
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
I would not have thought so, but it's such a bizarre problem that I hoped you were creating some sort of weirdo project that happened to hide it
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: I hoped you were creating some sort of weirdo project
i think it's really weirdo since i opened other projects and the link tab is visible
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
-- modified at 0:09 Wednesday 22nd February, 2006
|
|
|
|
|
Is your project a static library, a DLL or an application?
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ryan Binns wrote: Is your project a static library, a DLL or an application?
it's an MFC application...(.exe)
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
I am not sure, but is the project selected in the tree-view on the left. If you have some file(s) selected, then the link tab may not appear. Also if you have multiple projects selected on the left tree-view, the link tab will not be visible. So try selecting one project name from the left tree view.
this is this.
|
|
|
|
|
Dear All,
Is there some open source graphics library that is compatible with unicode. I have checked FreeImage, it really rocks (as for my requirements) but it's not unicode compatible, so when I try to pass it a string (such as a filepath), it would take only const char * . The library should be standard C (since I may have to port the code to many platforms). I would be very grateful if some can guide me to something...
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
I used paintlib years ago, not sure if it ever supported unicode tho. Why don't you add unicode support, how hard could it be ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Dear Sir,
Thanks, but you know, I am kindof lazy so I want to go for ready-made thing (since my project is not Image library).
and what about some documation tool?
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Okay, lets say I start out to convert it to support Unicode support, there's a confusion, "Will the library still be platform independant" i.e. does ANSI/ISO C (not C++) support unicode?
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|