|
In my dialog,there is a CListCtrl (named m_ListCtrl) with Report style and LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES style,but there is no row:m_ListCtrl.GetItemCount=0,I move the mouse freely in my m_ListCtrl,How can I get the row-index,column-index and the rectange located by (row-index,column-index)Cthanks!
|
|
|
|
|
Sorry to bother you people. I am just looking for a way to change function prototypes based on the MFC version. Ideally I would be able to write something like this:
#ifdef ((mfc7))
#endif
If replying by email, send to mcondra@yahoo.com
Thanks, -M
-- modified at 21:19 Tuesday 13th December, 2005
|
|
|
|
|
use _MFC_VER
#if _MFC_VER == 0x0700
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
mcondra wrote: If replying by email, send to mcondra@yahoo.com
definitely not !!!
why would we use email when we have a so good forum where anybody can share ideas and solutions ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
Hi,
The problem I have got is, when I disable a button, by clicking on it, it still holds the appearance of having the default button indicator, i.e. it has a thin black line around it.
This results in a trapped keyboard interface.
Can someone tell me how I can lose this indicator of the disabled button, and shift it to another control.
Thx
|
|
|
|
|
|
paper67 wrote: Can someone tell me how I can lose this indicator of the disabled button, and shift it to another control.
GetNextDlgTabItem() will reterive ctrl id of next Dlg Ctrl ID and SetFocus api will put focus on that control
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Has anyone seen code for a richTextBox that will fully justify text? Right, Left, and Center are no problem, but for some reason code for fully justifying text in a richTextBox is no where. Is it not a part of the .net framework? Sure there is MFC and Windows GDI, but no examples in MSDN. There is large amounts of information on this subject in Visual Basic and if you are coding an HTML, but nothing while programming in Windows Forms. Thanks if anyone has anything to get me started.
Regards,
RRL
|
|
|
|
|
Hi,
I am using Visual C++ 6.0 with Visual Studio. I have been trying to use the Visual Studio Install application but I want a somewhat complex directory structure to be created based upon the user input. I want to have the application folder under the root with several subfolders (named by the user) created under the application folder and three subfolders (statically named) each created under the initial user named subfolders and then populate the folder contents with their corresponding files. Is this something that Visual Studio Installer can't do? Do I need to write my own installer with my own dialog boxes?
Thanks,
Buck
|
|
|
|
|
Can you use CreateDirectory() or SHCreateDirectoryEx() for this?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I don't think so within Visual Studio Installer. There are no .cpp files associated with it. This is the application that creates the application_name.msi file. You can start it through Programs->Microsoft Visual Studio 6.0->Microsof Visual Studio 6.0 Enterprise Tools->Visual Studio Installer.
Thanks
Buck
|
|
|
|
|
My apologies. I just assumed you wanted a Visual C++ answer.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
|
I think you've just lost yout weekly allowance of question ...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
First of all, you need to check Ignore HTML tags in this message (good for code snippets) for your code to post properly.
Second - the headers you're using are not standard C++. It's a shame it's taken this long, but Microsoft have finally stopped supporting these non-standard headers. You need to drop the .h, so for example, include iostream, not iostream.h. As a result, you'll find everything is now in namespace std, so you will need using namespace std; if you don't have it already.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
It's all those smiley faces. I put those in my code, and it won't even start to compile.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Is the lab assistant/monitor no help in this endeavor?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Why did you post all this repetitive code ?
VC6 is a very poor implimentation of C++. If you knew what you were doing, you could write code that would work in a standards compliant compiler, but otherwise, it was easy to write code that is not C++. I personally had no trouble moving from VC6, but it sounds like your own code was not standards compliant. Do you have a using namespace std, or a using std::ofstream anywhere ? Without it, ofstream is hidden within a namespace, assuming you used the standard headers.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Is there a relatively easy way to build tooltip functionality into a CTreeCtrl?? This has got to be the most archaic of all MFC controls (including CListCtrl)!!!
Thanks!!
~Nitron.
ññòòïðïðB A start
-- modified at 15:50 Tuesday 13th December, 2005
|
|
|
|
|
|
cool, thx!
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
Nitron wrote: including CListCtrl
I know how you like CListCtrl
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
I have a windows program I'm developing in Visual C++ 6, and I need to be able to pass a command-line argument to the program. I'm familiar with doing this in console programs, and I've found instructions dealing with arguments in the main() or wmain() functions, but I've noticed that my program does not seem to have a main function. How is this possible? I thought all programs, visual or not, required a main function.
Kevin
|
|
|
|
|
ktaustin wrote: I'm familiar with doing this in console programs...
There is no difference between this and a GUI program. All command-line arguments follow the name of the program itself (e.g., myprogram.exe arg1 arg2 ...).
ktaustin wrote: I've noticed that my program does not seem to have a main function. How is this possible?
It's not. All programs have an "entry point" be it main() or WinMain() . The fact that you aren't seeing it does not mean it doesn't exist. Is this an MFC-based program?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|