Click here to Skip to main content
16,012,025 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNeed help in writing files (log style most likely) Pin
Snyp25-Jul-03 11:02
Snyp25-Jul-03 11:02 
GeneralRe: Need help in writing files (log style most likely) Pin
Chris Maunder25-Jul-03 15:01
cofounderChris Maunder25-Jul-03 15:01 
GeneralRe: Need help in writing files (log style most likely) Pin
Snyp26-Jul-03 3:05
Snyp26-Jul-03 3:05 
Generaldeclaring 2 D array Pin
Anonymous25-Jul-03 8:22
Anonymous25-Jul-03 8:22 
GeneralRe: declaring 2 D array Pin
AlexO25-Jul-03 9:16
AlexO25-Jul-03 9:16 
GeneralRe: declaring 2 D array Pin
David Crow25-Jul-03 10:53
David Crow25-Jul-03 10:53 
GeneralRe: declaring 2 D array Pin
Bob Stanneveld25-Jul-03 10:17
Bob Stanneveld25-Jul-03 10:17 
GeneralHaving trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 8:21
Terry O'Nolley25-Jul-03 8:21 
(note: italics will contain the text from the documentation of Chris' Grid control. I got it from here)


The underlying class of the grid control is CGridCtrl which is derived from CWnd.

So far, so good Smile | :)


To use it, either use the MS Visual C++ dialog editor to place a custom control on a dialog, and enter "MFCGridCtrl" (no quotes) as the Class name. To subclass the control using the DDX mechanism (this will be done by default by the ClassWizard) use the DDX_GridControl function instead of the DDX_Control function (just manually change the ClassWizard entry). This ensures your control is correctly registered as a drop target and avoids some weird win95 issues.

I am assuming that all of the above is the "either" half of the "either...or" and the below is the "or" half........

Alternatively you can use CGridCtrl::Create:

CGridCtrl grid;
grid.Create(rect, pParentWnd, nID);
where rect is the dimensions, pParentWnd is the parent window, and nID is the id.


Here is where I am stuck. Is nID the control ID of the Grid? Does this mean I still need to create it in the dialog editor? If so, do I still make it a custom control?


I'd really like to use this control. I looked at the demo app and it is really nice!

Any help would be appreciated.








GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 8:33
John M. Drescher25-Jul-03 8:33 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 9:29
Terry O'Nolley25-Jul-03 9:29 
GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 9:51
John M. Drescher25-Jul-03 9:51 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 12:18
Terry O'Nolley25-Jul-03 12:18 
GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 12:36
John M. Drescher25-Jul-03 12:36 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 12:54
Terry O'Nolley25-Jul-03 12:54 
GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 12:57
John M. Drescher25-Jul-03 12:57 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 13:08
Terry O'Nolley25-Jul-03 13:08 
GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 13:11
John M. Drescher25-Jul-03 13:11 
GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 13:14
John M. Drescher25-Jul-03 13:14 
GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 13:19
John M. Drescher25-Jul-03 13:19 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 14:15
Terry O'Nolley25-Jul-03 14:15 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 14:21
Terry O'Nolley25-Jul-03 14:21 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 15:00
Terry O'Nolley25-Jul-03 15:00 
GeneralRe: Having trouble using Chris' Grid Control Pin
Chris Maunder25-Jul-03 15:10
cofounderChris Maunder25-Jul-03 15:10 
GeneralRe: Having trouble using Chris' Grid Control Pin
Chris Maunder25-Jul-03 15:03
cofounderChris Maunder25-Jul-03 15:03 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 15:19
Terry O'Nolley25-Jul-03 15:19 

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.