Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: c++ win api questions  (Read 2809 times)

0 Members and 1 Guest are viewing this topic.

zaryk

  • Guest
c++ win api questions
« on: April 23, 2008, 08:49:00 AM »
im learning c++ win api.....and trying to add nodes to the treeview box it created.......this is what i have so far more or less:

Code: [Select]
   MSG msg;
HWND myDialog = CreateWindowEx(0, WC_DIALOG, NULL, WS_OVERLAPPEDWINDOW| WS_VISIBLE,
                      0, 0, 721, 344, NULL, NULL, NULL, NULL);
                            //__________________________________________________
                            //CreateWindowEx - create the main window
                            //0 - for now supply this 0
                            //WC_DIALOG - window class name, predefined constant WC_DIALOG is used to create dialog boxed
                            //"MUXIC PLAYER" - title test of the window
                            //WS_OVERLAPPEDWINDOW | WS_VISIBLE - styel WS_VISIBLE means make this window visible
                            //400 - X coordinates on screen
                            //100 - Y coordinates on screen
                            //200 - Width of the Window in pixels
                            //200 - Height of the window in pixels
                            //NULL - parent window handle - for now supply Null
                            //NULL - do
                            //NULL - do
                            //NULL - do
                            //__________________________________________________

CreateWindowEx(0,
                  WC_TREEVIEW,
                  0,
                  WS_CHILD | WS_VISIBLE,
                  4,
                  29,
                  169,
                  197,
                  myDialog,
                  (HMENU)libTree_id,
                  NULL,              //instance
                  NULL);                 //user defined info

I have found stuff on doing nodes, but with no luck been able to implement them into my program without out right taking the code, and revolving everything around the treeview.

also i would like help on equivalents of c# .net framework:

1.  minimize/maximize on button click
2. add panels
3. dock
4. datagridview


if anyone can point to right locations that would be great.  thanks