Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSplitter Window Pin
Sitaram Sukumar6-Nov-06 21:36
Sitaram Sukumar6-Nov-06 21:36 
AnswerRe: Splitter Window Pin
Niklas L7-Nov-06 0:11
Niklas L7-Nov-06 0:11 
QuestionRe: Splitter Window Pin
David Crow7-Nov-06 3:07
David Crow7-Nov-06 3:07 
AnswerRe: Splitter Window Pin
Niklas L8-Nov-06 12:13
Niklas L8-Nov-06 12:13 
QuestionHow can I add drag and drop facility in dialog based application? Pin
Sameer_Thakur6-Nov-06 20:25
Sameer_Thakur6-Nov-06 20:25 
AnswerRe: How can I add drag and drop facility in dialog based application? Pin
PJ Arends6-Nov-06 21:17
professionalPJ Arends6-Nov-06 21:17 
GeneralRe: How can I add drag and drop facility in dialog based application? Pin
Sameer_Thakur6-Nov-06 22:17
Sameer_Thakur6-Nov-06 22:17 
GeneralRe: How can I add drag and drop facility in dialog based application? Pin
PJ Arends6-Nov-06 22:45
professionalPJ Arends6-Nov-06 22:45 
You do not need the CView class. Follow the instructions on the page and sub-pages that I linked.

Drop Source:
[quote]
Otherwise, construct a COleDataSource object, initialize it with the selection, and call the data source object's DoDragDrop member function
[/quote]

Drop Target
[quote]
To implement a drop target
Add a member variable to each view in the application that you want to be a drop target. This member variable must be of type COleDropTarget or a class derived from it.

From your view class's function that handles the WM_CREATE message (typically OnCreate), call the new member variable's Register member function. Revoke will be called automatically for you when your view is destroyed.

Override the following functions. If you want the same behavior throughout your application, override these functions in your view class. If you want to modify behavior in isolated cases or want to enable dropping on non-CView windows, override these functions in your COleDropTarget-derived class.

Override To allow
OnDragEnter
Drop operations to occur in the window. Called when the cursor first enters the window.

OnDragLeave
Special behavior when the drag operation leaves the specified window.

OnDragOver
Drop operations to occur in the window. Called when the cursor is being dragged across the window.

OnDrop
Handling of data being dropped into the specified window.

OnScrollBy
Special behavior for when scrolling is necessary in the target window.
[/quote]



You may be right
I may be crazy
-- Billy Joel --


Within you lies the power for good, use it!!!

GeneralRe: How can I add drag and drop facility in dialog based application? Pin
James R. Twine7-Nov-06 3:09
James R. Twine7-Nov-06 3:09 
QuestionHow get the handle of the window ? Pin
Anamika20056-Nov-06 19:58
Anamika20056-Nov-06 19:58 
AnswerRe: How get the handle of the window ? Pin
Hamid_RT6-Nov-06 20:12
Hamid_RT6-Nov-06 20:12 
AnswerRe: How get the handle of the window ? Pin
Mark Salsbery7-Nov-06 6:37
Mark Salsbery7-Nov-06 6:37 
AnswerRe: How get the handle of the window ? Pin
dharani7-Nov-06 21:38
dharani7-Nov-06 21:38 
AnswerRe: How get the handle of the window ? Pin
dharani7-Nov-06 21:40
dharani7-Nov-06 21:40 
Questionunresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 19:43
Raghavendra Pise6-Nov-06 19:43 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
prasad_som6-Nov-06 20:01
prasad_som6-Nov-06 20:01 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 20:20
Raghavendra Pise6-Nov-06 20:20 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
Hamid_RT6-Nov-06 20:02
Hamid_RT6-Nov-06 20:02 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 20:22
Raghavendra Pise6-Nov-06 20:22 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Hamid_RT7-Nov-06 4:20
Hamid_RT7-Nov-06 4:20 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
VCSharp0076-Nov-06 21:42
VCSharp0076-Nov-06 21:42 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 22:09
Raghavendra Pise6-Nov-06 22:09 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
fat_boy6-Nov-06 23:43
fat_boy6-Nov-06 23:43 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise7-Nov-06 0:34
Raghavendra Pise7-Nov-06 0:34 
QuestionWrite text to the command prompt in Dlg based Appln. Pin
zxc896-Nov-06 19:30
zxc896-Nov-06 19:30 

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.