Click here to Skip to main content
16,014,765 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generala little lost with MainFrame Pin
NickOne26-Nov-02 6:32
NickOne26-Nov-02 6:32 
GeneralDrawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 6:25
Crercio O. Silva26-Nov-02 6:25 
GeneralRe: Drawing line conneting two dialogs Pin
Nick Parker26-Nov-02 6:33
protectorNick Parker26-Nov-02 6:33 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:08
Crercio O. Silva26-Nov-02 13:08 
GeneralRe: Drawing line conneting two dialogs Pin
Nick Parker26-Nov-02 17:06
protectorNick Parker26-Nov-02 17:06 
GeneralRe: Drawing line conneting two dialogs Pin
Scott H. Settlemier26-Nov-02 7:03
Scott H. Settlemier26-Nov-02 7:03 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:05
Crercio O. Silva26-Nov-02 13:05 
GeneralRe: Drawing line conneting two dialogs Pin
Maximilien26-Nov-02 7:46
Maximilien26-Nov-02 7:46 
CDC::MoveTo and CDC::LineTO ?

I think the problem you might have is how to handle the action itself, how to click ( somewhere ), then drag the mouse ( to draw the line ), and release ( to finalize the connection )

I'd do it by hand, and handle the WM_MOUSEMOVE, WM_LBUTTONDOWN and WM_LBUTTONUP of the modeless dialogs; on the WM_LBUTTONDOWN, "anchor" the starting point, and on the mouse move, draw the line from the anchor to the current point, and on the WM_LBUTTONUP, process the connection by fetching which dialog is the "target" and which is the source, and drawing the line from the closest border.

Max.

GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:03
Crercio O. Silva26-Nov-02 13:03 
GeneralRe: Drawing line conneting two dialogs Pin
Maximilien26-Nov-02 15:20
Maximilien26-Nov-02 15:20 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva27-Nov-02 1:45
Crercio O. Silva27-Nov-02 1:45 
GeneralThreads Pin
Ruca26-Nov-02 5:59
Ruca26-Nov-02 5:59 
GeneralRe: Threads Pin
Roger Stewart26-Nov-02 6:23
professionalRoger Stewart26-Nov-02 6:23 
GeneralRe: Threads Pin
Ruca27-Nov-02 0:28
Ruca27-Nov-02 0:28 
GeneralTreeView Pin
act_x26-Nov-02 5:24
act_x26-Nov-02 5:24 
GeneralRe: TreeView Pin
dima_t26-Nov-02 18:06
dima_t26-Nov-02 18:06 
GeneralCompiler Pin
Rage26-Nov-02 5:05
professionalRage26-Nov-02 5:05 
GeneralRe: Compiler Pin
berndg26-Nov-02 5:25
berndg26-Nov-02 5:25 
GeneralRe: Compiler Pin
Rage26-Nov-02 21:05
professionalRage26-Nov-02 21:05 
GeneralWM_USER message Pin
roel_26-Nov-02 3:58
roel_26-Nov-02 3:58 
GeneralRe: WM_USER message Pin
Alois Kraus26-Nov-02 4:07
Alois Kraus26-Nov-02 4:07 
GeneralRe: WM_USER message Pin
jhwurmbach26-Nov-02 4:07
jhwurmbach26-Nov-02 4:07 
GeneralRe: WM_USER message Pin
roel_26-Nov-02 4:16
roel_26-Nov-02 4:16 
GeneralRe: WM_USER message Pin
jhwurmbach26-Nov-02 4:31
jhwurmbach26-Nov-02 4:31 
GeneralRe: WM_USER message Pin
Alexinuk26-Nov-02 4:45
Alexinuk26-Nov-02 4:45 

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.