Is it possible to add a toolbar to a modal dialog? I tried, but ended up with assertion errors, was just wondering if it can be done! Thanx funbag! :-D skydiving....if at first you don't succeed, you're fecked!
funbag
Posts
-
Toolbars in Dialogs? -
Formatting RebarI'd like to include the formatting rebar in a dialog box I'm creating. Does anyone have a sample of this? Maybe this might be an idea for an article? The formatting rebar I'm talking about is featured in many MS editor based programs, such as MS Word, or Frontpage, and includes font selection, point selection, bold italic and underline selection etc. Many thanx, funbag :-O skydiving....if at first you don't succeed, you're fecked!
-
Formatting rebarsI'd like to add the formatting rebars seen in apps like word to a dialog I'm writing. Is this possible, or will I have to create my own?:eek: skydiving....if at first you don't succeed, you're fecked!
-
_variant_t objects, and the like...My class is derived from IADORecordBinding, and has the two _variant_t objects. They're used to read an adVariant and an adGUID type from a recordset object, to which my object is bound. The adVariant is just used to store a date from the db, while the GUID is used as a record identifier. When I delete my object, a COM error is raised, 800020008 - bad variable type. The memory leaks seem to be a cascade of the error of not deleteing my object correctly. I hope this helps Thanks, funbag skydiving....if at first you don't succeed, you're fecked!
-
_variant_t objects, and the like...I've got a class with a _variant_t member variable. When I call delete on objects of my class, I get memory leaks. Is there a safe way of getting rid of these objects? Thanks, funbag:-O skydiving....if at first you don't succeed, you're fecked!
-
msado15.dll missingI found my copy of msado15.dll in c:\Program Files\Common Files\System\ado\ You should have it, but if you don't, drop me a mail... skydiving....if at first you don't succeed, you're fecked!
-
msado15.dll missingI'm sure it's somewhere on your system! Use the windows find utility to have a look for it. When you find it, copy it to c:\winnt\system32 and then from the dos prompt cd to c:\\system32 regsvr32 msado15.dll To unregister it, go back to the system32 directory, and type regsvr32 -u msado15.dll I'm running Win2k Pro, so I've never used XP, so I'm not sure what it calls the windows directory, but I'm sure you can figure it out! Good luck! skydiving....if at first you don't succeed, you're fecked!
-
COleVariant's and globally unique ID'sBackground... I'm using the msado15.dll ADO type library for database access. I'm using a class derived from CADORecordBinding to bind to a _RecordsetPtr object, which I'm using to update a list view with. The class is given below. I'm currently reading the MailID field out of the database as an adVariant type, but it's actually an adGUID type. The reason I'm reading as an adVariant, is that I'm not sure how to store an adGUID type as a c/c++ variable. I'm a bit new to all this, so please forgive my greenness! Destroying the CMessageHeadersCache Object... You'll notice that there are COleVariant member variables in the CMessageHeadersCache class. When I call delete on objects this class, the program crashes! When the COleVariant member variables are absent, deallocation goes just fine! I'm sure that there must be some safe/correct/appropriate way of deallocating these objects containing COleVariants, but I'm a bit stuck! Please help! Many thanx, funBag #pragma once #include "icrsint.h" // ============================================================================ // Class CMessageHeadersCache // Purpose ADO Record binding for the Messsage Headers list view object. // History funbag 24th March 2002 Initial Rev. // ============================================================================ class CMessageHeadersCache : public CADORecordBinding { public: CMessageHeadersCache(); ~CMessageHeadersCache(); BEGIN_ADO_BINDING(CMessageHeadersCache) // DateTimeReceived ADO_VARIABLE_LENGTH_ENTRY2(1, adVariant, DateTimeReceived, sizeof(DateTimeReceived), status[0], FALSE) ADO_VARIABLE_LENGTH_ENTRY2(2, adVarChar, SenderMailAddress, sizeof(SenderMailAddress), status[1], FALSE) ADO_VARIABLE_LENGTH_ENTRY2(3, adVarChar, SubjectLine, sizeof(SubjectLine), status[2], FALSE) ADO_VARIABLE_LENGTH_ENTRY2(4, adVarChar, Opened, sizeof(Opened), status[3], FALSE) ADO_VARIABLE_LENGTH_ENTRY2(5, adVariant, MailID, sizeof(MailID), status[4], FALSE) END_ADO_BINDING() public: COleVariant DateTimeReceived; char SenderMailAddress[100]; char SubjectLine[1024]; char Opened[2]; COleVariant MailID; ULONG status[5]; };:(( skydiving....if at fir
-
Splitter WindowsI'm using a dynamic splitter window to display multiple views. I would like to create a window similar to the MS Outlook window, with one view on the LHS and two views on the RHS, one above the other. m_wndSplitter.Create(...) arguments insist that you create a number of rows and columns for the views. My question is, given that I must create a splitter window with 2 rows and 2 columns in order to achieve the desired effect, How do I hide/remove(?) the unwanted view? Many thanx funbag X| skydiving....if at first you don't succeed, you're fecked!
-
CListView problems...Thank you thank you thank you thank you thank you (and I didn't use copy and paste there either!) It works great! Thank you! skydiving....if at first you don't succeed, you're fecked!
-
CListView problems...that's really strange! I can't seem to get it going at all. You think maybe there might be a message I'm not mapping or something??? skydiving....if at first you don't succeed, you're fecked!
-
CListView problems...I'm trying to create a view class derived from CListView. It is created as the main view object of an MDI application, by the appwizard on project creation. OnInitialUpdate() is where you place the code that initializes a view. My problem is that I can't seem to get the CListView to show the column headers. Can anyone see what I'm doing wrong? (Here's my OnInitialUpdate:) void CMailBoxProtoView::OnInitialUpdate() { CListView::OnInitialUpdate(); int x; // Get a reference to the list view's control CListCtrl& listCtrl = this->GetListCtrl(); // Add the columns listCtrl.InsertColumn(0, _T("From"), LVCFMT_LEFT); listCtrl.InsertColumn(1, _T("Received"), LVCFMT_LEFT); listCtrl.InsertColumn(2, _T("Subject"), LVCFMT_LEFT); listCtrl.InsertColumn(3, _T("Size"), LVCFMT_LEFT); // Set the column sizes for(x = 0; x < 4; x++) listCtrl.SetColumnWidth(x, LVSCW_AUTOSIZE_USEHEADER); // Set the style of the list control listCtrl.SetExtendedStyle(LVS_REPORT); // This displays fine, but where's the headings?! listCtrl.InsertItem(0, "Item0"); } Many thanx, funbag! skydiving....if at first you don't succeed, you're fecked!
-
A bit miffed about the doc/view architecture...Hi there, Please forgive my ignorance, I'm a little new to MFC. I wish to create an MDI program that uses the CHTMLEditView, to create HTML documents. When the document has been created, and the user wishes to save the document, instead of saving the file out to the file system, I'd like to write it out to a database. I've thought that the way to go about this is to override the view's ID_FILE_SAVE and ID_FILE_SAVE_AS events. Given that an HTML document is media rich, into what type of variable would I read the document contents? I'm assuming that once read, the document content can be written to the database as a BLOB? Thanx for any input! skydiving....if at first you don't succeed, you're fecked!