|
Hi,
Set/GetItemData is verified way. It not depend of nodelevel.
I am sure that you simply have confused something in the program.
Vitali
|
|
|
|
|
Check out ItemHasChildren
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I'm going to convert a program to a library. First, I delete the project(say foo.dsp) which originally create binary exe-file. Second, insert all header/cpp/resource files which are in foo.dsp into the new one.Third, compile to see how thing's going.
To my surprise, many include path errors come out to me.
PS: preprocesser definitions are always the same.
Please give me some help if you could.
TIA
-gusd
|
|
|
|
|
Hi,
If you eant convert App to the static Lib I can suggest
folowing way:
1) Create Lib project
2) Add necessary files from App to the Lib project
while( not success)
3) Compile
4) Do some corrections
end while
Vitali
|
|
|
|
|
Thanks for your advice.
But, I'm wondering whether there's some path variable in the foo.dsp file or not.
do you know that ?
|
|
|
|
|
Hehe,
its may be path variables, Preprocessor defs, and many other conditions.
Nobody can tell more without project files
Vitali
|
|
|
|
|
Thanks any way.
|
|
|
|
|
Hi,
I have a application,where i will display the images. It has a option to zoom the image also there is a scroll bar. Now i want to implement the selection tool,which allows the user to select some part of the image. Is there any sample code to implement this?
Regards
Neha
|
|
|
|
|
Hi,
navigate to the bitmaps section of this site.
there there is a solution.
Vitali
|
|
|
|
|
I have a tree control where i have drag and drop however if you want to drag to something thats scrolled off the screen you have to using the arrow keys or scroll button while still holding the item your dragging my question is how can i make it so when the user drags the mouse to the bottom its starts scroll untill the user stops moving the mouse i tried ScrollWindow But that seemed all screwed up and i tried mapping the OnVScroll but im not really sure what paremeters to pass it can someone pls point me in the right direction thanks
|
|
|
|
|
Hi Marissa,
You can use varuious tecknikues to implement drag and drop,
but in any case you can use
HitTest and EnshureVisible to determine position
and show item in a tree control.
Vitali
|
|
|
|
|
Hi All,
When I am trying to select the value of any of the selected node inside a CTreeCtrl, the NM_CLICK returns the value either previously selected or some other value.
Can anybody tell me how to correctly get the value selected by Left Mouse Click.
Thanks.
The Phantom.
|
|
|
|
|
void CBuilderDlg::OnClickTree(NMHDR* pNMHDR, LRESULT* pResult)
{
TVHITTESTINFO tvhit;
CPoint p;
GetCursorPos(&p);
m_EnvTreeCtrl.ScreenToClient(&p);
tvhit.pt=p;
HTREEITEM hItem=m_EnvTreeCtrl.GetSelectedItem();
tvhit.hItem=hItem;
m_EnvTreeCtrl.HitTest(&tvhit);
hItem=tvhit.hItem;
m_EnvTreeCtrl.SelectItem(hItem);
hItem=m_EnvTreeCtrl.GetSelectedItem();
if (hItem)
{
...
}
}
~RaGE();
|
|
|
|
|
You can use the code snippet, the best way is however to handle TVN_SELCHANGED (so the selection changed message) instead of the NM_CLICK
~RaGE();
|
|
|
|
|
Hi,
you also can use fillowing :
1) TVN_SELCHANGED
2) TVN_SELCHANGING
Vitali
|
|
|
|
|
|
Hi All,
I have developed an application and I want to load it at startup..I have done that..but it takes some time to load..I want the process to be fast and user is not able to access the desktop in the meantime before seeing my application..is there anyone who can help me out..any help or pointers are highly appreciated..Thanks a lot in advance..
himanshu
|
|
|
|
|
OK, Open your front door and take a right, walk 100 yards down the road then take a left, jog for 15 minutes until you see a shop called 'Computers for Dummies', using the door handle, gently twist and push the door at the same time. Walk in through the empty space and go to isle three. Purchase the casio calculator and install your program, perhaps that will speed things up for you . Seriously, though either re-install windows or get a faster machine. I doubt its your program, but if it is then optimise its construction and startup code.
Once I was but the learner, now I am the master
|
|
|
|
|
hi Johnny,
that was really marvellous..actually my question was that I am adding my application to windows startup..but it loads after few things..and i want it to load first..is there any priority sort of set such that the order in which the programs will load..if so i wanted to know how can i increase priority so that my application loads first and hence..user is not able to access desktop..is there any other way to do it..if so..i am loooking forward to it..i only know a single way to add it to windows registry at
HKEY_CURRENT_USER\Software\Microsoft\windows\current version\run ..if u can help..Looking forward to ur reply..
himanshu
|
|
|
|
|
Sarcasm is the lowest form of wit...but the highest form of intelligence . Sorry for the sarcastic tone, just having a giggle. Anyway, I had a look in MSDN and found the Win32_StartupCommand class which may be of some use, though MSDN is very unclear about what it does and how it works. There are a whole host of other things relating to Win32_LoadOrder_blah which may be of some help, I think its a way of accessing services but I am not sure, you may have to look these things up on-line at msdn to get some examples cos there aint any with MSDN 6.0 I may be barking up the wrong tree, but its something you can look at that may be of some help, I hope. Good luck, if I find anything else, or you does, or anybody else does, post it up!
|
|
|
|
|
Does anyone know something about that?
xinhua xia
|
|
|
|
|
Hi
This Ocx control must be control container i.e. one must have certain interfaces such as IOleInPlaceFrame, IOleInPlaceUIWindow and any other.If this control not supported this interfaces you cant place button on this control.If all of thats interface for container supported you can place button into control with Dialog editor if one are used or create this button by Create function calling.
|
|
|
|
|
Hello,
Look to the www.logicsoftware.net portfolio
and find there ATL Button. This is my old project.
Ask my friend for more details about it via "contact us".
Vitali
|
|
|
|
|
Hello everyone. I am writing a program which is going to create a new folder inside the current user's My Document folder. How do I find the path to the current user's My Document folder? ie. "c:\my documents" on Win98 or "C:\Documents and Settings\SomeUserName\My Documents" in win2000? And what should my application default to when it goes to create datafiles if run on Win95, since there is no "My Documents" folder in Win95? Default to the application's path? I was told by other developers that an application should default to the My Documents folder when creating a new datafile for the first time (like Word does).
|
|
|
|
|
Use SHGetSpecialFolderPath() with CSIDL_PERSONAL as the nFolder parameter.
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|