Click here to Skip to main content
15,887,844 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: OnDropFiles() problem Pin
Parthi_Appu27-Mar-07 17:19
Parthi_Appu27-Mar-07 17:19 
GeneralRe: OnDropFiles() problem Pin
ghunzel0627-Mar-07 17:27
ghunzel0627-Mar-07 17:27 
GeneralRe: OnDropFiles() problem Pin
Parthi_Appu27-Mar-07 17:32
Parthi_Appu27-Mar-07 17:32 
GeneralRe: OnDropFiles() problem Pin
ghunzel0627-Mar-07 17:47
ghunzel0627-Mar-07 17:47 
GeneralRe: OnDropFiles() problem Pin
Parthi_Appu27-Mar-07 17:50
Parthi_Appu27-Mar-07 17:50 
GeneralRe: OnDropFiles() problem Pin
Naveen27-Mar-07 18:17
Naveen27-Mar-07 18:17 
GeneralRe: OnDropFiles() problem Pin
ghunzel0627-Mar-07 18:56
ghunzel0627-Mar-07 18:56 
GeneralRe: OnDropFiles() problem Pin
Parthi_Appu27-Mar-07 19:19
Parthi_Appu27-Mar-07 19:19 
ghunzel06 wrote:
reusability of the custom edit control


In normal don't send the custom message to its parent.
You can have a member variable (may be BOOL) to identify, to notify the parent or not. Made this BOOL as FALSE as default, for the classes who need those notification can set this BOOL to TRUE, by a member function.

On drop handler, check for this member variable and act accordingly.
class CMyEdit:public CEdit
{
 BOOL m_bNotifyParentOnDrop;

 CMyEdit() {
  m_bNotifyParentOnDrop = FALSE; }

 ...

 void SetNotifyFlag(BOOL bVal) {
  m_bNotifyParentOnDrop = bVal }
};

inDropHandler
...
if (m_bNotifyParentOnDrop)
{
 /* send custom message */
}



Do your Duty and Don't expect the Result
Rate this Post, if I helped You

AnswerRe: OnDropFiles() problem Pin
Stephen Hewitt27-Mar-07 17:23
Stephen Hewitt27-Mar-07 17:23 
GeneralRe: OnDropFiles() problem Pin
ghunzel0627-Mar-07 17:50
ghunzel0627-Mar-07 17:50 
GeneralRe: OnDropFiles() problem Pin
Parthi_Appu27-Mar-07 17:56
Parthi_Appu27-Mar-07 17:56 
GeneralRe: OnDropFiles() problem Pin
ghunzel0627-Mar-07 18:20
ghunzel0627-Mar-07 18:20 
GeneralRe: OnDropFiles() problem Pin
David Crow28-Mar-07 3:00
David Crow28-Mar-07 3:00 
GeneralRe: OnDropFiles() problem Pin
Stephen Hewitt27-Mar-07 17:58
Stephen Hewitt27-Mar-07 17:58 
GeneralRe: OnDropFiles() problem Pin
ghunzel0627-Mar-07 18:45
ghunzel0627-Mar-07 18:45 
GeneralRe: OnDropFiles() problem Pin
Stephen Hewitt27-Mar-07 18:53
Stephen Hewitt27-Mar-07 18:53 
GeneralRe: OnDropFiles() problem Pin
ghunzel0627-Mar-07 19:06
ghunzel0627-Mar-07 19:06 
QuestionSetTimer before CreateWindow() Pin
LiYS27-Mar-07 16:48
LiYS27-Mar-07 16:48 
AnswerRe: SetTimer before CreateWindow() Pin
Stephen Hewitt27-Mar-07 17:09
Stephen Hewitt27-Mar-07 17:09 
GeneralRe: SetTimer before CreateWindow() [modified] Pin
LiYS27-Mar-07 17:22
LiYS27-Mar-07 17:22 
GeneralRe: SetTimer before CreateWindow() Pin
Stephen Hewitt27-Mar-07 17:26
Stephen Hewitt27-Mar-07 17:26 
GeneralRe: SetTimer before CreateWindow() Pin
LiYS27-Mar-07 17:43
LiYS27-Mar-07 17:43 
GeneralRe: SetTimer before CreateWindow() [modified] Pin
LiYS27-Mar-07 19:45
LiYS27-Mar-07 19:45 
GeneralRe: SetTimer before CreateWindow() Pin
Stephen Hewitt27-Mar-07 19:53
Stephen Hewitt27-Mar-07 19:53 
Questionfloating-point to hex conversion Pin
morocco21227-Mar-07 12:03
morocco21227-Mar-07 12:03 

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.