Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateDialogIndirect doesn't return Pin
CHAIGNEAU27-May-03 9:30
CHAIGNEAU27-May-03 9:30 
GeneralProblems with message routing in Dundas' COXSizeControlBar Pin
Miguel Segarra27-May-03 1:21
Miguel Segarra27-May-03 1:21 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Ivor S. Sargoytchev27-May-03 5:36
Ivor S. Sargoytchev27-May-03 5:36 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Ivor S. Sargoytchev28-May-03 10:12
Ivor S. Sargoytchev28-May-03 10:12 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Miguel Segarra28-May-03 23:09
Miguel Segarra28-May-03 23:09 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Ivor S. Sargoytchev29-May-03 7:53
Ivor S. Sargoytchev29-May-03 7:53 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Miguel Segarra30-May-03 1:26
Miguel Segarra30-May-03 1:26 
GeneralRe: Problems with message routing in COXSizeControlBar Pin
Ivor S. Sargoytchev2-Jun-03 11:25
Ivor S. Sargoytchev2-Jun-03 11:25 
Hi Miguel,

The tree control (SysTreeView32) like all common controls sends the TVN_BEGINLABELEDIT notification thought WM_NOTIFY to its parent. The problem is that the parent to which the notification messages are sent is set at creation time (when ::CreateEx(...) for the tree is called) and cannot be changed later on. You can call SetParent(...) later on until you are blue in the face, but the messages will still be sent to the original parent. This is a problem with SysTreeView32 common control. You can easily reproduce it with a simple dialog based application where you have a tree control as a child of a tab control.

The problem second problem - namely not being able to handle TVN_BEGINLABELEDIT in derived classes is a direct consequence of the problem that I just described. This is so because handling notification messages in derived classes relies on the parent window to reflect the message back to the child control.

Ivor S. Sargoytchev
Dundas Software
GeneralRe: Problems with message routing in COXSizeControlBar Pin
Miguel Segarra4-Jun-03 1:07
Miguel Segarra4-Jun-03 1:07 
Questionhow to add windows type properties to our own files..? Pin
harinath27-May-03 1:12
professionalharinath27-May-03 1:12 
AnswerRe: how to add windows type properties to our own files..? Pin
Rage27-May-03 1:21
professionalRage27-May-03 1:21 
AnswerRe: how to add windows type properties to our own files..? Pin
Rage27-May-03 1:23
professionalRage27-May-03 1:23 
GeneralRe: how to add windows type properties to our own files..? Pin
harinath27-May-03 1:29
professionalharinath27-May-03 1:29 
GeneralRe: how to add windows type properties to our own files..? Pin
harinath27-May-03 1:37
professionalharinath27-May-03 1:37 
GeneralProblem by using Property Page as a Dialog Pin
praveenpnayak27-May-03 0:49
praveenpnayak27-May-03 0:49 
GeneralRe: Problem by using Property Page as a Dialog Pin
Rage27-May-03 1:02
professionalRage27-May-03 1:02 
GeneralRe: Problem by using Property Page as a Dialog Pin
praveenpnayak27-May-03 1:27
praveenpnayak27-May-03 1:27 
GeneralRe: Problem by using Property Page as a Dialog Pin
Rage27-May-03 2:33
professionalRage27-May-03 2:33 
GeneralRe: Problem by using Property Page as a Dialog Pin
Renjith Ramachandran27-May-03 4:09
Renjith Ramachandran27-May-03 4:09 
GeneralRe: Problem by using Property Page as a Dialog Pin
praveenpnayak28-May-03 0:11
praveenpnayak28-May-03 0:11 
GeneralDialogBox problem Pin
Jump_Around27-May-03 0:02
Jump_Around27-May-03 0:02 
GeneralRe: DialogBox problem Pin
Daniel Strigl27-May-03 0:18
Daniel Strigl27-May-03 0:18 
GeneralRe: DialogBox problem Pin
Neville Franks27-May-03 0:32
Neville Franks27-May-03 0:32 
GeneralDisable close button in AfxMessageBox Pin
rohit.dhamija26-May-03 23:27
rohit.dhamija26-May-03 23:27 
GeneralRe: Disable close button in AfxMessageBox Pin
dabs26-May-03 23:48
dabs26-May-03 23:48 

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.