Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting command line parameters of a running process Pin
«_Superman_»17-May-05 4:26
professional«_Superman_»17-May-05 4:26 
GeneralRe: Getting command line parameters of a running process Pin
rocky_pulley17-May-05 4:41
rocky_pulley17-May-05 4:41 
GeneralRe: Getting command line parameters of a running process Pin
David Crow17-May-05 5:53
David Crow17-May-05 5:53 
GeneralRe: Getting command line parameters of a running process Pin
David Crow17-May-05 4:43
David Crow17-May-05 4:43 
GeneralAllocating very large memory Pin
Orkun GEDiK17-May-05 3:35
Orkun GEDiK17-May-05 3:35 
GeneralRe: Allocating very large memory Pin
James R. Twine17-May-05 3:41
James R. Twine17-May-05 3:41 
GeneralRe: Allocating very large memory Pin
Orkun GEDiK17-May-05 8:26
Orkun GEDiK17-May-05 8:26 
GeneralProperty Pages and CTreeCtrl Updates Pin
jamesrgoodwin17-May-05 3:19
jamesrgoodwin17-May-05 3:19 
Codeguru,

I have a property sheet, which contains a nmber of property pages. One of the pages contains a CTreeCtrl.

The tree control is used to display a list of items with tick boxes. The list of items never changes, however the ticks next to then respond to changes in the document structure.

I use OnInitDialog to create the list of elements using InsertItem and also log the handles for later use.

I then use OnSetActive to record each time the user clicks the page and update the tick boxes using SetCheck and the recorded handles from OnInitDialog.

My problem:...

The property page has to be shown twice, first the items appear and second the tick boxes are correct. Thereafter everything works fine.

I'm presuming this is because the inserted items have not been activated until after the page is made visible? Therefore SetCheck doesn't do anything on the first pass. But I've tried to resolve this with a call the the property sheet to call another page, using SetActivePage(*), then reactivating the current one. However, this doesn't work. Also tried various update calls inbetween OnInitDialog and OnSetActive, but to no avail.

Any ideas what I'm doing wrong? The help would be very much appreciated Smile | :)

James

GeneralRe: Property Pages and CTreeCtrl Updates Pin
Jack Puppy17-May-05 4:11
Jack Puppy17-May-05 4:11 
GeneralRe: Property Pages and CTreeCtrl Updates Pin
jamesrgoodwin17-May-05 4:24
jamesrgoodwin17-May-05 4:24 
GeneralRegarding the value that appears in the first two bytes of a bmp image Pin
MoQuisha17-May-05 2:22
MoQuisha17-May-05 2:22 
GeneralRe: Regarding the value that appears in the first two bytes of a bmp image Pin
Priyank Bolia17-May-05 2:27
Priyank Bolia17-May-05 2:27 
GeneralRe: Regarding the value that appears in the first two bytes of a bmp image Pin
Bob Stanneveld17-May-05 2:42
Bob Stanneveld17-May-05 2:42 
GeneralRe: Regarding the value that appears in the first two bytes of a bmp image Pin
Chris Losinger17-May-05 7:17
professionalChris Losinger17-May-05 7:17 
Question#define ?? Pin
Bob Stanneveld17-May-05 2:18
Bob Stanneveld17-May-05 2:18 
AnswerRe: #define ?? Pin
toxcct17-May-05 2:21
toxcct17-May-05 2:21 
GeneralRe: #define ?? Pin
Bob Stanneveld17-May-05 2:23
Bob Stanneveld17-May-05 2:23 
AnswerRe: #define ?? Pin
ThatsAlok17-May-05 2:23
ThatsAlok17-May-05 2:23 
GeneralRe: #define ?? Pin
Bob Stanneveld17-May-05 2:24
Bob Stanneveld17-May-05 2:24 
AnswerAlmost solved! Pin
Bob Stanneveld17-May-05 2:59
Bob Stanneveld17-May-05 2:59 
AnswerRe: #define ?? Pin
Tim Smith17-May-05 3:20
Tim Smith17-May-05 3:20 
QuestionUser script or other technique? Pin
lynchspawn17-May-05 2:14
lynchspawn17-May-05 2:14 
AnswerRe: User script or other technique? Pin
Blake Miller17-May-05 5:05
Blake Miller17-May-05 5:05 
GeneralPls help Pin
lgstef17-May-05 2:13
lgstef17-May-05 2:13 
GeneralRe: Pls help Pin
ThatsAlok17-May-05 2:20
ThatsAlok17-May-05 2:20 

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.