Click here to Skip to main content
15,907,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Search Multiple Occurance in CRichEditCtrl Pin
prasad_som27-Mar-07 20:03
prasad_som27-Mar-07 20:03 
QuestionOffsets of the words in the file. Pin
Suresh H27-Mar-07 19:53
Suresh H27-Mar-07 19:53 
AnswerRe: Offsets of the words in the file. Pin
Cedric Moonen27-Mar-07 20:06
Cedric Moonen27-Mar-07 20:06 
GeneralRe: Offsets of the words in the file. Pin
Suresh H27-Mar-07 23:05
Suresh H27-Mar-07 23:05 
Question__int64 Pin
vikramlinux27-Mar-07 19:43
vikramlinux27-Mar-07 19:43 
AnswerRe: __int64 Pin
Parthi_Appu27-Mar-07 19:50
Parthi_Appu27-Mar-07 19:50 
AnswerRe: __int64 Pin
Nibu babu thomas27-Mar-07 20:23
Nibu babu thomas27-Mar-07 20:23 
GeneralRe: __int64 Pin
vikramlinux27-Mar-07 22:37
vikramlinux27-Mar-07 22:37 
QuestionLast entered username and password for a faster login in win32 Application. Pin
amitmistry_petlad 27-Mar-07 18:52
amitmistry_petlad 27-Mar-07 18:52 
AnswerRe: Last entered username and password for a faster login in win32 Application. Pin
David Crow28-Mar-07 2:56
David Crow28-Mar-07 2:56 
GeneralRe: Last entered username and password for a faster login in win32 Application. Pin
amitmistry_petlad 28-Mar-07 17:46
amitmistry_petlad 28-Mar-07 17:46 
GeneralRe: Last entered username and password for a faster login in win32 Application. Pin
David Crow29-Mar-07 2:34
David Crow29-Mar-07 2:34 
GeneralRe: Last entered username and password for a faster login in win32 Application. Pin
amitmistry_petlad 29-Mar-07 2:42
amitmistry_petlad 29-Mar-07 2:42 
GeneralRe: Last entered username and password for a faster login in win32 Application. Pin
David Crow29-Mar-07 2:55
David Crow29-Mar-07 2:55 
GeneralRe: Last entered username and password for a faster login in win32 Application. Pin
amitmistry_petlad 29-Mar-07 2:59
amitmistry_petlad 29-Mar-07 2:59 
QuestionOnDropFiles() problem Pin
ghunzel0627-Mar-07 17:15
ghunzel0627-Mar-07 17:15 
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 

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.