Worked this one out. I added a new class derived from CFrameWnd and put that inside the initial SplitterWindow. Then I had a second splitter inside the the CFrameWnd.
John Oliver
Posts
-
CSplitterWnd inside another -
CSplitterWnd inside anotherI want to create an app with three CView derived classes similar to the default Visual C++ IDE ( I don't need complicated things like MDI's or tabbed controls or docking just yet). Is is necessary to create a static CSplitterWnd within another and can anybody give me any starters? Thanks, John
-
batch file for setting env variablesThanks very much David, John
-
operator- in Date ClassHello, Think it goes something like this, but you should check on web ... if year is divisible by 4 then ....if year is not divisible by 100 then .........it's a leap year ....else .........if year is divisible by 400 then ...............it's a leap year .........endif ....endif endif John
-
operator- in Date ClassHello, This mightn't be exactly what your asking but you should make the '-' operator a 'friend' rather than a class member. It means you can use it like the built-in subtraction operator instead of call a method. See http://guinness.cs.stevens-tech.edu/~asatya/courses/cs765IT/C++\_overview/lect10\_1.pdf John
-
Any idea on this simple application?Create an MDI project and instead of drawing your own table, try Codeproject's own MFCGrid in one of the views. It's quite easy to use IMO. John
-
batch file for setting env variablesHello, I'm working at a machine where where the VC++ batch file for setting the PATH environment variables isn't available and I don't have access to the CD today. Can anybody remind me exactly what variables are set? Cheers, John p.s. or even just paste the script would be brilliant!
-
OnNotify and the MFCGridOOPs, I didn't realise that the third parameter was the resource ID, I thought it was some combination of default flags. Thanks very much!
-
OnNotify and the MFCGridHello, I'm using the MFCGrid and I want my code to respond to the user editing a cell. It's a dialog based application. Looking at the demo app, it's looks like I should create the following mapping: ON_NOTIFY(GVN_ENDLABELEDIT, IDC_GRID, OnGridEndEdit) However, I am creating the Grid control dynamically in the code using m_pGridCtrl->Create(rect, this, 100); instead of binding it to a Custom Control on the dialog, therefore I don't have the equivelent of IDC_GRID. Is there another way to bind the WM_NOTIFY message to a instantiated variable of the control. Thanks, John
-
Source Files going missing in VC++ IDEThanks! That is scary. Could be it, although I've been using the win2000/Norton Antivirus/Visual C++ combo for 3 years now. But I will shutit down now.
-
Source Files going missing in VC++ IDEHello, I'd appreciate any help. Over the last two days I've been experiencing my source code files going missing, while I'm working on a project in the IDE. I'm using Visual C++ 6with SourceSafe. I don't have SourceSafe Client running, but frequently, while developing in the IDE, when I double-click on a file in the Project Explorer to open it(always an implentation file) I get 'Project file .. does not exists. Do you want to get it from Source control?' For some strange reason it's just disappeared from my hard -drive. I can restore it from SourceSafe but I've lost of the work I've done since I last checked in. I always save my files regulary. Can anybody tell me if VC++ keeps temporary copies of files while I'm working on them so I can try to restore something.
-
Multiple SQLServer databasesHello, We're upgrading our application to use SQL Server, having used Access for some time and I need some insight, as I may have to redesign the tables. The application is a web based front-end for our data. In the Access version, we have a completely separate database for each Client/Project who logs on, each database had the same structure. It is easier to deal with things when they had this both physical and logical division. There is some data duplicated between the databases, and this must be manually copied, usaully when the database is first created. Is SQLServer designed to allow multiple databases to exist independently, but still allow some common data to be shared, and also allow Stored Procedures to be shared among the different but same structured databases. Perhaps we should go the way of combining everything into one database however I would really prefer to store them independently. I understand that Oracle may have something like this in the way of folders. I'd appreciate any words of wisdom. Thanks, John
-
Debugger won't startup when app crashesThanks David, got the info i needed in Q103861
-
Debugger won't startup when app crashesCould somebody tell me what string's they have in this key.... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug for 'Debugger' and 'PreVisualStudio7Debugger'. I tried to get rid of the splash screen appearing whenever VS JIT debugging starts up, as described in Wintellect article[^]but whatever I've done, the debugger won't start up at all now. I'm using VC++6 in VS6 btw Thanks,john
-
Anybody a member of LiveJournal.com?That'll do nicely, thanks.
-
Anybody a member of LiveJournal.com?Hello, I'm trying to sign up for some space @ www.livejournal.com To get a free account I need to be introduced by a 'friend'. Unfortunately none of my friends are already members. I'd appreciate it if anybody who is a member could send me an account creation code. I'm hoping to create a development journal - I'm beginning to get stressed out because I'm not organised enough. Thanks, John
-
Who are the CP article editors?Just out of interest, who are the Codeproject editors and what is the criteria to become one of them?
-
Getting the width of a webbrowser frame -
Getting the width of a webbrowser frameHello, I have a web browser control in my dialog and I want to resize the control to fit the html inside. First of all, is it actually possible to get the size of the document/top frame? There is only one frame in the document and I'm hoping to read it's height and width properties, but I've been trying to drill down to the Frame but I keep getting an error. I've checked a lot of the newsgroups and I think I'm going through the IE DOM correctly. I'd appreciate any help. Thanks, John IDispatch* spDispatch = NULL; IHTMLDocument* m_spDoc1 = NULL; IHTMLDocument2* m_spDoc2 = NULL; IHTMLFramesCollection2* m_pFrames = NULL; HRESULT hr = NULL; spDispatch = m_browser.GetDocument(); spDispatch ->QueryInterface (IID_IHTMLDocument, (void**)&m_spDoc1); m_spDoc1->QueryInterface(IID_IHTMLDocument2, (void**)&m_spDoc2); m_spDoc2->get_frames(&m_pFrames); //the following code was taken from an example //which iterates through the frames / but since my page has just one frame, frameCount returns 0 //and since it is zero based I'm presuming this is correct LONG framesCount; m_pFrames->get_length(&framesCount); for( long i=0; i <= framesCount; i++) { VARIANT varIdx; varIdx.vt=VT_UINT; VARIANT varResult; varIdx.lVal=i; VariantInit(&varResult); hr = m_pFrames ->item(&varIdx, &varResult); if (SUCCEEDED(hr)) // always fails here
-
VC6 Add-in for selecting configurationBrilliant! Thanks. John