|
my requirement is....... to have 'T' shape splitter windows..........
>
> like this......
>
> -------------------
> | | |
> | 1st | 2nd |
> | view | view |
> |------------------
> | 3rd |
> | View |
> -------------------
>
> that's the look it shud look like........
>
> i'll have Tree control in 1st view.
> i've to replace the 2nd view based on selection of the branch items in
tree
> control......
>
> 3rd view is constant...... only 2nd view is dynamic......
> m trying different options..... but failed to reach the destination so
> far.....
> if u 've some class for splitter to do like this.... can u plz. send
> me......
>
> thanks and regards
> Adi Narayana
|
|
|
|
|
See if you can use this framework
http://www.codeproject.com/dialog/visualfx.asp
|
|
|
|
|
thanks yaar..... for immediate reply.....
i m working on it now..... hope it'll work for me ...
regards
Adi
|
|
|
|
|
I'm currently making something similar to a telnet-type window and I'm using a multi-line edit box to display the information I need.
My question is this:
I need the edit box to scroll, to I'm using the ES_AUTOVSCROLL style. Only thing is, I need to set the number of visible lines based on the window size in order for the scrolling to work automatically. I have not been able to find any information on how to set the max number of lines in a multi-line edit box. Does anyone know how to do this?
Any comments or suggestions are greatly appreciated.
Thanks!
|
|
|
|
|
Why does the design utilize an editbox and not an editview?
Kuphryn
|
|
|
|
|
Becuase I'm not using MFC
Stuck with what i got. Is there and edit view that's usable without mfc? I'm looking now.
|
|
|
|
|
Just create the edit control of a size that fits the number of lines that you wish to display. Then, make sure that the ES_AUTOVSCROLL style is set. Problem solved. You also may want to set a fixed-pitch font and handle the background color to make it appear like a console window.
|
|
|
|
|
In my MDI app, I'm trying to draw an ellipse in my CView (In OnDraw() more exactly), but my view does not get updated unless I move or scroll or does something ot the window. Invalidate() and RedrawWindow() just make my app loop, since they call OnDraw which ... you know so how do you get the view updated once something has been put in the pDC ?
Thanks...
~RaGE();
|
|
|
|
|
Try other updating CWnd member functions including UpdateWindow().
Kuphryn
|
|
|
|
|
well, if I understood correctly, he tried putting those in the OnDraw which will callback the OnDraw and will crash the software ...
The problem (I think) is that he draws in the OnDraw, but issues the drawing somewhere else (ie. from a menu or the mouse handler) which might not Invalidat the view, and will not draw.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
I wanted to use the Multimedia timers and have implemented based on reference in the MSDN site
I Included mmsytem.h
still i get the following linker errors
Linking...<br />
error LNK2001: unresolved external symbol __imp__timeSetEvent@20<br />
error LNK2001: unresolved external symbol __imp__timeBeginPeriod@4 error LNK2001: unresolved external symbol __imp__timeGetDevCaps@8
I was unable to figure out the problem !
|
|
|
|
|
Did you add winmm.lib to the library your are linking to ?
~RaGE();
|
|
|
|
|
|
Hi guys
I'm trying to implement a solution to communicate 2 app through a global system message
In the app1 I do in InitInstance
msgApp=RegisterWindowMessage("DATABASE_UPDATED");
and then when is necessary I do
PostMessage(theApp.msgApp,1,1) wParam and lParam it doesn't matter.
What I have to write to manage DATABASE_UPDATE message in app2 and where?
Both app are SDI app.
Best Regards
Dr. Pi
|
|
|
|
|
With MFC :
With a simple message (#define MYMESSAGE WM_USER+1 ) :
Go into the your MainFrame.cpp, and add :
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_WM_CREATE()
ON_WM_SIZE()
ON_MESSAGE(MYMESSAGE,memberFxn)
END_MESSAGE_MAP()
Prototype , in MainFrame.cpp :
protected:
afx_msg LRESULT memberFxn(WPARAM, LPARAM);
DECLARE_MESSAGE_MAP()
With registered message :
Same with :
ON_REGISTERED_MESSAGE( msgApp, memberFxn )
and
afx_msg LRESULT memberFxn(WPARAM, LPARAM);
~RaGE();
|
|
|
|
|
I had a case of my previous system with VC++ 6.0 where I tried something like this, only to discover that WM_USER wasn't defined in the header given, had to alter the header file. Seems ok on this system though
Elaine
The tigress is here
|
|
|
|
|
And I forgot to add that you have to do
msgApp=RegisterWindowMessage("DATABASE_UPDATED");
with exactly the same string "DATABASE_UPDATED" in both application, otherwise, it won't work ... (I also suggest to add your application name in the string, because database_updated is pretty common).
~RaGE();
|
|
|
|
|
I need the advice of a storage expert.
Does anyone have experience with timing array performance?
For example, if I have a data structure like the following:
For an array called Array, I know that Array[0] to Array[5] holds
a collection of like objects and Array[6] to Array[8] holds another collection of like objects. I keep track of the new object indices, for example I store 0 and 6 and iterate through the list based on these numbers. So I can skip to the next element right away by jumping from 0 to 6. Now compare this to a CMap object.
Can anyone tell me which will provide the faster access times and which will use the least memory? How is a CMap object structured and how does it allocate its memory? (Does it use an iterator to do a search?)
OR, if anyone knows a better way of doing this, all suggestions are welcome.
|
|
|
|
|
One solution is a map container with, for example, a vector as its value. Each key corresponds to a value of a collection of like objects.
Kuphryn
|
|
|
|
|
How can I put a imagem in the background of a ListControl ??
The CListCtrl::SetBkImagen() function really doesn't work ??
[]'s
Cris.
|
|
|
|
|
Have you read this note ? :
Note Because CListCtrl::SetBkImage makes use of OLE COM functionality, the OLE libraries must be initialized before using SetBkImage. It is best to initialize the COM libraries when the application is initialized and uninitialize the libraries when the application terminates. This is automatically done in MFC applications that make use of ActiveX technology, OLE Automation, OLE Linking/Embedding, or ODBC/DAO operations.
~RaGE();
|
|
|
|
|
Ok, it work well with OLE Automation support.
But, I have a application. How can I "SET" this support with MS Visual Studio 6 ??
Thanks a lot ...
CRIS.
|
|
|
|
|
In your CApplicationApp::InitInstance()
put
if (!AfxOleInit())
return FALSE;
|
|
|
|
|
Ok, thanks ...
Another thing: I did put the imagem in the list background, but the list have text itens. How can I make the text be transparen too ??
[]'s
CRIS.
|
|
|
|
|