Click here to Skip to main content
16,006,749 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: Source Safe Pin
Derek Lakin9-Apr-01 5:32
Derek Lakin9-Apr-01 5:32 
GeneralmIRC Pin
Drake Elsari6-Apr-01 13:19
Drake Elsari6-Apr-01 13:19 
Generalalgorithm for connection lines Pin
Thomas Freudenberg5-Apr-01 10:48
Thomas Freudenberg5-Apr-01 10:48 
GeneralRe: algorithm for connection lines Pin
Chris Losinger5-Apr-01 10:56
professionalChris Losinger5-Apr-01 10:56 
GeneralRe: algorithm for connection lines Pin
Thomas Freudenberg5-Apr-01 11:18
Thomas Freudenberg5-Apr-01 11:18 
GeneralRe: algorithm for connection lines Pin
Neville Franks5-Apr-01 17:19
Neville Franks5-Apr-01 17:19 
GeneralExplorer, Docking, Splitter-windows in plain C Pin
Ted Green29-Mar-01 11:19
Ted Green29-Mar-01 11:19 
GeneralRe: Explorer, Docking, Splitter-windows in plain C Pin
Henry Jacobs29-Mar-01 12:44
Henry Jacobs29-Mar-01 12:44 
I don't have any code but I can tell you were to start.

Explorer's tree view uses the treeview common control which does not use MFC and can be used from C. Lookup the API function FindFirstFile for information on how to traverse directories.

Docking windows and splitter windows use the same type of system. The main window controls the child windows size and location. One of the child windows, the view, is where the data is drawn.

When docking windows are used the view window's size and location is changed by the main frame to allow other child windows to be positioned around it. When the docked window is clicked on and the cursor is dragged and released it tells its parent window that it needs space at its new position. The parent window resizes the view. (See Illus. 2.)

When a splitter window is used one parent window controls the position of two or more view windows. In Windows Explorer the parent window is the main frame. (See Illus. 3.) When the parent window detects when the cursor pass over it the parent window changes the cursor to the splitter cursor. When the button is pressed and the cursor moved the parent window resizes its child windows (views) based on the cursor's new location. A way to see this behavior is to use the spy tool on Windows Explorer.
                 Illustrations
 
1) Application window without toolbars.
 
+---------------------+ <-- Main frame
|Title                |
+---------------------+
|File Edit Help       |
|+-------------------+| <-- View window takes
||                   ||     up the Main frame's
||                   ||     GetClientRect().
||                   ||
||                   ||
||                   ||
|+-------------------+|
+---------------------+
 
2) Notice how the view window size has been
   decreased by the toolbar.
 
+---------------------+ <-- Main frame
|Title                |
+---------------------+
|File Edit Help       |
|+--------+           | <-- Docking window
||        |           |     (toolbar)
|+--------+           |
|+-------------------+| <-- View window
||                   ||
||                   ||
|+-------------------+|
+---------------------+
 
3) Like Windows Explorer, the main frame will
   act as the splitter. For more complex
   designs a child window can handle the
   splitter logic.
 
+---------------------+ <-- Main frame
|Title                |
+---------------------+
|File Edit Help       |
|+----+ +------------+| <-- Two view windows
||    | |            ||     Explorer uses a
||    | |            ||     treeview and
||    | |            ||     listview control.
||    | |            ||
||    | |            ||
|+----+ +------------+|
+---------------------+
       ^
       |
   The main frame detects mouse movement over
   the space between the views.

Hope that helps.
GeneralRe: Explorer, Docking, Splitter-windows in plain C Pin
Ted Green29-Mar-01 14:33
Ted Green29-Mar-01 14:33 
GeneralHTTP/1.1 client Pin
Olaf van der Spek28-Mar-01 5:33
Olaf van der Spek28-Mar-01 5:33 
GeneralCorba-orb initialisation problem Pin
28-Mar-01 2:41
suss28-Mar-01 2:41 
GeneralRe: Corba-orb initialisation problem Pin
2-May-01 5:53
suss2-May-01 5:53 
GeneralCalling a user's email client on windows Pin
Russell Robinson28-Mar-01 1:12
Russell Robinson28-Mar-01 1:12 
GeneralRe: Calling a user's email client on windows Pin
Michael Dunn28-Mar-01 16:50
sitebuilderMichael Dunn28-Mar-01 16:50 
GeneralRe: Calling a user's email client on windows Pin
Russell Robinson28-Mar-01 16:57
Russell Robinson28-Mar-01 16:57 
GeneralRe: Calling a user's email client on windows Pin
Andrew Peace1-Apr-01 7:22
Andrew Peace1-Apr-01 7:22 
GeneralRe: Calling a user's email client on windows Pin
Simon Brown17-Apr-01 2:05
Simon Brown17-Apr-01 2:05 
GeneralRe: Calling a user's email client on windows Pin
orcun colak17-Apr-01 5:18
orcun colak17-Apr-01 5:18 
GeneralRe: Calling a user's email client on windows Pin
Simon Brown17-Apr-01 5:45
Simon Brown17-Apr-01 5:45 
GeneralRe: Calling a user's email client on windows Pin
Russell Robinson21-Apr-01 21:37
Russell Robinson21-Apr-01 21:37 
QuestionHow to set thumbnail image to a file icon of Explorer Pin
Masahiro Kurosawa27-Mar-01 20:29
Masahiro Kurosawa27-Mar-01 20:29 
AnswerRe: How to set thumbnail image to a file icon of Explorer Pin
PJ Arends28-Mar-01 6:23
professionalPJ Arends28-Mar-01 6:23 
AnswerRe: How to set thumbnail image to a file icon of Explorer Pin
Michael Dunn28-Mar-01 16:57
sitebuilderMichael Dunn28-Mar-01 16:57 
GeneralRe: How to set thumbnail image to a file icon of Explorer Pin
Masahiro Kurosawa28-Mar-01 17:32
Masahiro Kurosawa28-Mar-01 17:32 
GeneralHow to extract icon from file? Pin
Masahiro Kurosawa29-Mar-01 1:17
Masahiro Kurosawa29-Mar-01 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.