|
Hello.
From your previous posts about the same problem, it seems as if your project files disappears at night, every now and then.
Why don't you make a backup before you leave work for the day?
|
|
|
|
|
Now I started taking backup but I think its too late
|| ART OF LIVING ||
|
|
|
|
|
Which version of visual C++ are you using? Try deleting the .NCB file and relaunching.
|
|
|
|
|
I AM USING VERSION 6.0
|| ART OF LIVING ||
|
|
|
|
|
shivditya wrote: project's class view is missing
Try this...
Close your workspace..Delete ".ncb" and ".clw" files from the project folder..
|
|
|
|
|
Hi,All:
I create a subclassed treectrl which allow user drag and drop
but if the Item is without image (neither normal image nor slected image)
,I can't create the Drag image ,it return NULL always.
<br />
SetCapture();<br />
Select(hSelItem,TVGN_CARET);<br />
m_pDragImageList=CreateDragImage(hSelItem);
it works well while item has image.
Can any one help me to point where I am wrong !
Thanks a lot
Don't look at me in that way!
|
|
|
|
|
white jungle wrote: if the Item is without image (neither normal image nor slected image)
,I can't create the Drag image ,it return NULL always.
This behavior seems OK to me. If your item does not have any image, which one should be taken as dragimage ?
~RaGE();
|
|
|
|
|
But if you drag a item ,the drag image is consist of the image and of course the text.
SO I don't think that the only item which include image and text can be drag and drop!
And I write some code to createDragimage with item which only has text.
but there's some wrong in my code.
That is,I can't check if there is a image with the item.
for Example:
if I retrieve the imagelist of the treectrl and return NULL.Obviously the item do not has a image.
But if the the treectrl return a valid imagelist but the item DO not have a image with it.I use fcuntion GetItemImage(hItem,iImage,iSelImage) to check if the item has a image.but the function always return TRUE.even the item is only consist of text,the parameter iImage,iSelImage will be 0.SO I can't judge if the item has a image with it.
Can anyone help me for this issue!?
Thank you very much!
Don't look at me in that way!
|
|
|
|
|
You have to cheat. Create the tree control without an image list. Before calling CreateDragImage, assign an image list to the CTreeCtrl, After the CreateDragImage function returns, assign a NULL image list to the tree control. For example:
m_tree.SetImageList( &m_imageListTree, TVSIL_NORMAL );
m_pDragImage = m_tree.CreateDragImage(m_hDragTreeNode);
m_tree.SetImageList( NULL, TVSIL_NORMAL );
This assumes that you want a tree control WITHOUT images assigned to each item. If you WANT images in the tree control, just call SetImageList when you create the tree control.
You might think that it is possible to assign an image list to the tree control, but for each item say specify -1 as the image index i.e. no image. The problem with this is that it displays the item as if there was a blank image, which is not the same thing.
|
|
|
|
|
I wanted to implement a tree like structure similar to the layers control in Photoshop. I am unable to decide which control should I subclass and use for this purpose. Tree control i dont think will be useful for such a task. How about subclassing a Listbox and drawing all the things on my own. Comments please.
Vicky
|
|
|
|
|
I think the SSTab or Tab Control is like the layer control in the photo shop. Is that you are looking? Or what do you mean by layers control?
Nice talking to you.
|
|
|
|
|
I wanted information about the controls inside the tab which displays the layers and thumbnails.
|
|
|
|
|
I could give one idea. But any way you are going to implementing that. So do like which you feel happy.
I think tool bar is good for that. In a tool bar if we add some check buttons we can get that environment (I think). But may not exactly like that. Or else if we need same exactly like photo shop Layers control, then I prefer we should prepare one activex control which will have two check button options and which can hold one picture and one lable. and it should have the respective events implimented. those controls need to be added to that tool bar. If you show the tool bar in vertical then the look will be same. Am I correct?
Thanks. Have a nice day.
Nice talking to you.
|
|
|
|
|
If I understood you correctly then this listbox[^] should be useful to you.
At least you could add some additional functionalities that you need to this control by yourself.
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
Hi,Guys
I want to change my console based program into a SDI program. And I have adready make it can work.
But there is one critcal thing left, I don't know how to output the messages used to be displayed in the console to the SDI view.
Can anyone kindly give me some hint or a sample?
Thanks in advance!
|
|
|
|
|
Hello.
I think the simplest way to do it is by creating a dialog based application. (I've done the same thing myself).
For the "console", create a listbox and send the console output to it.
|
|
|
|
|
Thanks very much for your reply!!
Actually instead of listbox, I have tried to use ListView under SDI, and it works fine.
But now I want to switch to CRichEditView, and not sure if there will have some overflow problem.
Once again thanks very much!!
|
|
|
|
|
Hello.
I haven't used it, so I can't tell...
Good luck.
|
|
|
|
|
Hi,
Thanks all the same
|
|
|
|
|
You don't have to simulate it, you can create a real console window using AllocConsole(). You can get a handle to it using GetStdHandle() and then write messages using WriteConsole()
|
|
|
|
|
hi
I have the following problems while debugging an MFC application.
I am using VS 6.
1)If i set the breakpoints and debug ,in the variables window it displays the value {???} for some variables.Is it unicode or something like that?
2)Most of the values of the variables are displayed in Hexadecimal form(even though i turned it off in options of variable window ),how to see the usual integer values?
3)The flow suddenly breaks into Disassembly(which i don't understand too much).is there anyway to get around this problem?
Thanx in advance
Early to bed and early to rise,work like hell and advertise
|
|
|
|
|
1) the question mark typically means it cannot resolve the address for the variable.
2)odd, that should work.
3) breaking away from your code to disassembly typically means it is in code that is outside your program and the source is not provided elsewhere. This can happen with many runtime functions or library code. There is no way to prevent it unless you make sure you do not step edit into something that is outside of your app code.
|
|
|
|
|
Hi.
Look at the answer from douglasjordan, above. I just want to complete his answer on your 3:rd point:
If you shift window in the workspace (with ctrl-tab), then you will get back to your code. Look at the green arrowhead (or possibly the line above it). That's where your program called the function that was shown i assembler.
|
|
|
|
|
Further on the third point, you should have an option to display the Call Stack in a window (most likely View->Debug->Call Stack, or Alt-V,D,C). The current level will be highlighted. Trace down the call stack to the first routine that you recognize, and double-click there. This should pop up a window with your source code so that you can see where the offending call is being made.
The nice thing about the call stack is that you can display different variables in the Watch Window, depending on where you are in the call stack. As you double-click to display a function at various levels in the Call Stack, Visual Studio reverts to that function's context, so you can display local variables.
The Call Stack window also shows the parameters that are passed to functions, so you can see if something was sent that "broke" stuff.
Bob Ciora
|
|
|
|
|
I am working with a dialog based application having 9 (nine) edit field arranged in 3X3 matrix form. The dialog is also having three buttons (OK, Cancel and Process). I want the program do as follows:
1. When the user presses an arrow key (left, right, up and down) while in any edit field the focus should move to desired edit field only (not to OK or any other button)
2. Capture the keboard input (like ALT, CTRL etc. to be processed diffrently when in the focus is in edit field).
I came to know that dialogs with buttons and any other controls cannot capture keyboard input. Is it true?
Please help.
pani
|
|
|
|