Jay -- Why did you change the original sample around so much? Not sure from your example what it is you're trying to accomplish (give each child window a...
841
Brandon Corfman
bcorfman@...
Apr 2, 2001 3:07 am
Hi Kevin My suggestion is to look at the second DevelopMentor WTL White Paper (found at http://www.develop.com/dm/dev_resources.asp). It has a section on...
842
PeteB@...
Apr 2, 2001 12:16 pm
I've a WTL form-based app, the dialog resource for the form contains a rich edit control. Everything is fine if I use version 1 rich edit control but if I ...
843
Bernhard Doebler
programmer@...
Apr 2, 2001 1:48 pm
Hi, I built the BmpView-Sample. Then I overtook the property sheet part in a self made program and have now a very beautiful dialog with 3 propertypages. I can...
844
Leon Finker
lf21@...
Apr 2, 2001 1:55 pm
Have you loaded "riched20.dll" and used "RichEdit20A" in Create? ... From: <PeteB@...> To: <wtl@yahoogroups.com> Sent: Monday, April 02, 2001 8:16...
845
Igor Ostriz
iostriz@...
Apr 2, 2001 1:58 pm
I'm developing skins for WTL, and right now I'm on the crossroad: either to write from scratch CCommandBar (and Menu), or to ask Nenad if he has the idea :-) ...
846
kevin.burton@...
Apr 2, 2001 2:07 pm
Hello, I have read this White Paper (WTL Makes UI Programming a Joy, Part 2: The bells and whistles) but the section on property pages only shows how to ...
847
Ramon Smits
exyll@...
Apr 2, 2001 3:18 pm
... You can draw outside of the given drawitem rectangle. You can retrieve the dimensions of the whole window in you 1st DrawItem call and then draw the ...
848
Steve Maier
maier@...
Apr 2, 2001 3:29 pm
Also look in your stdafx.h file, you will see this line: #define _RICHEDIT_VER 0x0100 I have gotten version 2 to work fine by loading the DLL like Leon said...
849
Jay Giganti
JGiganti@...
Apr 2, 2001 10:31 pm
Brandon, I changed it because I wrote my code before before I saw the message. Once I ran into problems I then tracked down the info at this site. From what I...
850
Jay Giganti
JGiganti@...
Apr 2, 2001 10:43 pm
Brandon, By the way.. The only flag that made it work was the TTF_SUBCLASS and with this flag there is no need to trap mouse messages and use RelayEvent. As...
851
Jay Giganti
JGiganti@...
Apr 3, 2001 3:09 am
Kevin, I have put a property sheet in a modal dialog without any problems. Here are some snippets from my class. //The actual Property Sheet to Display class...
852
PeteB@...
Apr 3, 2001 6:53 am
Yes to both. I've changed the define in stdafx.h and I've loaded the DLL using CRichEditCtrl::GetLibraryName() (I've checked this resolves to the right name)....
853
Bernhard Doebler
programmer@...
Apr 3, 2001 7:58 am
Hi, Very nice code. I've also just dealt with PropertyPages and like to tell you about my success. I began with the BmpView-Sample from ...
854
Nenad Stefanovic
nenads@...
Apr 3, 2001 8:38 am
There is one more thing that you need to do: Resource editor in VC6 puts Rich Edit v1 control in a dialog template, so you need to change that. If you open...
855
Nenad Stefanovic
nenads@...
Apr 3, 2001 8:44 am
Hi Bernhard, What you did is all OK, but I'd like to point few things: You can simply override PropSheetCallback by implementing it in your derived class. ...
856
Bernhard Doebler
programmer@...
Apr 3, 2001 9:18 am
I have a certain lack of C++ knowledge, I confess. I thought a function has in every case to be virtual when it's intended to be overwritten. I'm not quite...
857
Nenad Stefanovic
nenads@...
Apr 3, 2001 9:45 am
Hi Bernhard, Well, these template specific issues can be very confusing, and can allow some very interesting, but rather complicated construct. DoModal is...
... rcClip.top, rcClip.right, rcClip.bottom ); ... If I can recall my code experimentions from a while back then it should work with the "GetClipBox" method on...
860
Igor Ostriz
iostriz@...
Apr 4, 2001 5:56 am
... work ... Correct. ... I know how to draw bitmap in menu (I've read RamonSmit_CCommandBarCtrl :-). I want to get rid of that 3D border that surrouds menu...
861
ing. Ramon A.J.E.J.M....
exyll@...
Apr 4, 2001 9:17 am
... Well, the code that is available on codeproject.com is rather old. I have a new version available but still have to mail it to codeproject. I will try to...
862
Nenad Stefanovic
nenads@...
Apr 4, 2001 9:31 am
... Yes, I will. Cheers, Nenad ... From: ing. Ramon A.J.E.J.M. Smits [mailto:exyll@...] Sent: Wednesday, April 04, 2001 2:17 AM To: wtl@yahoogroups.com ...
863
kevin.burton@...
Apr 4, 2001 2:34 pm
Jay, Thank you very much for your example. One question where and how do you call Create? ShowWindow? If I just do something like: CMainDlg dlg; dlg.DoModal();...
864
kevin.burton@...
Apr 4, 2001 3:05 pm
Jay, Sorry, but I ran into another problem. Even before I need to deal with the position rectangle ::PropertySheet(&m_psh) returns -1 and m_hWnd is NULL. Is ...
865
Igor Ostriz
iostriz@...
Apr 4, 2001 3:07 pm
OK. Now I've done it by hooking. In DoTrackPopupMenu I've created CBTHook, in hook I catch HCBT_CREATEWND message to get Menu hWnd. Then, I subclass that...
866
Jay Giganti
JGiganti@...
Apr 4, 2001 6:12 pm
Kevin, In OnInitDialog I call m_Sheet.Create(m_hWnd, 0, rc); With rc being retrieved from a static window that I created as a place holder. That is all I...
867
Jay Giganti
JGiganti@...
Apr 4, 2001 6:16 pm
Kevin. In the dialog that holds the property sheet I do the following. HWND hWndPlaceHolder = GetDlgItem(IDC_PROP_SHEET_HOLDER); ... CRect rc; ... ...
868
kevin.burton@...
Apr 4, 2001 7:18 pm
Jay, I am sorry to be such a pest but I cannot seem to get this to work. The latest problem is somewhat of a chicken and egg. I am trying to create my main...
869
kevin.burton@...
Apr 4, 2001 11:21 pm
Jay, OK. I think I am making some progress. I made a separate property sheet derived from CPropertySheetImpl rather than try to derive the main window from...