hey, im learning win api, and im trying to add nodes to a treeview....this is what i have so. I have found a couple of sites that show how this is done, but I can't ever get them implemented without just out right taking the whole thing and adding it to my code. Any ideas thanks. Along with this, I was hoping someone could lead me to the equivalent of c# .net framework:
1. how to maximize/minimize with button click
2. panels
3. docking
4. how to get rid of the top bar that the window title and close, maximize, and minimize, sit on.
int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
Wow ! So, what is your question ?
Couple of things:
for C#, this is not the right forum.
Also, it is advisable to ask one question per thread as much as possible when the questions are unrelated
zaryk
April 23rd, 2008, 05:34 PM
oh, Im sorry, well basically im looking to convert part of a c# .net framework program I have to c++ win api....thats why i came here because I am doing the programming in c++ win api, not c#. But, first of all, I would like help on adding nodes to the treeview. In the program it brings up a place for the treeview, but I don't know how to add nodes to it. I didn't want to do this but its not much so here is everything I have. Any links would be good too? Plus, because all my question relate to the same program, wouldn't they be related....lolol....yeah, I know what you mean.
//load audio and (in short) name it 'myFile'
mciSendString("open \"C:\\Documents and Settings\\zaryk\\My Documents\\My Music\\Revelations.wma\" type mpegvideo alias myFile", NULL, 0, 0);
//play audio
mciSendString("play myFile", NULL, 0, 0);
}
}
break;
case WM_INITDIALOG:
{
InitCommonControls(); // make our tree control to work
}
break;
}
return 0;
}
int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
SetWindowLong( myDialog, DWL_DLGPROC, (long) myProc );
//___________________________________________________________
//now set the procedure
// handle of the window we are attaching procedure to
//dialog window specific attribute - the dialog procedure
//name of procedure
//___________________________________________________________
while(GetMessage(&msg,NULL,0,0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return 0;
}
kirants
April 23rd, 2008, 05:37 PM
Your first stop should be:
http://msdn2.microsoft.com/en-us/library/aa921604.aspx
zaryk
April 23rd, 2008, 05:50 PM
Thanks for a quick reply. Thats going to explain alot......I was on the site before, but apparently looking in the wrong area.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.