Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to copy from clipboard to MS Word Project??? Pin
krle6-May-03 15:08
krle6-May-03 15:08 
GeneralWhy won't my CTreeCtrl work in my SDI Pin
adonisv6-May-03 11:43
adonisv6-May-03 11:43 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
valikac6-May-03 12:46
valikac6-May-03 12:46 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
adonisv6-May-03 13:35
adonisv6-May-03 13:35 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
valikac6-May-03 16:16
valikac6-May-03 16:16 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Tibor Blazko6-May-03 23:57
Tibor Blazko6-May-03 23:57 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Michael Dunn6-May-03 17:27
sitebuilderMichael Dunn6-May-03 17:27 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Chris Richardson6-May-03 18:21
Chris Richardson6-May-03 18:21 
I would bet you are trying to use it before the tree control has been created. Are you trying to access the tree control in a WM_SIZE handler? If so, it won't be created the first couple times the WM_SIZE handler gets called. Usually, the fix for this is something like this:

if( !IsWindow( m_YourTreeCtrl ) )
   return;

// Here, m_YourTreeCtrl can be accessed safely.


However, if you are trying to access the tree in a function that's only called once (say, for initialization), then you'll have to put the initialization code in some other function that's called later on.

Chris Richardson
Terrain Software
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
adonisv7-May-03 10:23
adonisv7-May-03 10:23 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Chris Richardson7-May-03 10:33
Chris Richardson7-May-03 10:33 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
adonisv7-May-03 11:11
adonisv7-May-03 11:11 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Chris Richardson7-May-03 11:16
Chris Richardson7-May-03 11:16 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
adonisv8-May-03 14:42
adonisv8-May-03 14:42 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Chris Richardson8-May-03 15:52
Chris Richardson8-May-03 15:52 
GeneralWow I got it workin'!!! Pin
adonisv8-May-03 18:29
adonisv8-May-03 18:29 
Generalparameter of glutInit Pin
aguest6-May-03 10:33
aguest6-May-03 10:33 
GeneralRe: parameter of glutInit Pin
Joaquín M López Muñoz6-May-03 11:11
Joaquín M López Muñoz6-May-03 11:11 
GeneralRe: parameter of glutInit Pin
aguest6-May-03 11:38
aguest6-May-03 11:38 
GeneralRe: parameter of glutInit Pin
Joaquín M López Muñoz6-May-03 12:05
Joaquín M López Muñoz6-May-03 12:05 
GeneralRe: parameter of glutInit Pin
aguest7-May-03 10:21
aguest7-May-03 10:21 
GeneralSDI and multiple views Pin
#realJSOP6-May-03 9:06
mve#realJSOP6-May-03 9:06 
GeneralRe: SDI and multiple views Pin
Alin Negru6-May-03 21:18
Alin Negru6-May-03 21:18 
General::LoadImage() out of memory error Pin
Iceman6-May-03 8:25
Iceman6-May-03 8:25 
GeneralRe: ::LoadImage() out of memory error Pin
AlexO6-May-03 10:21
AlexO6-May-03 10:21 
GeneralSerial Port Pin
Paddy6-May-03 8:24
Paddy6-May-03 8:24 

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.