|
It's not wierd at all - one is the size of the view, the other the size of the frame. The frame includes the non client area of the view, the menu, the toolbars, etc.
Christian
come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
|
|
|
|
|
I'm missing something!
I did pView->GetClientRect(&rect);
which is to say get the views client area (not plain old GEtClientRect which would be the frames area), so as I understand it,
getting the height in view and storing it in a variable to give to mainframe is the same as getting the rect with the pointer to the view.
Am I lost in a haze of confusion here? I do so want to understand your response,
Thanks,
ns
|
|
|
|
|
In that case, I dunno. You're sure both functions were called at the same time, or when the view was the same size ? It's not an MDI app and they were two different views ?
Christian
come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
|
|
|
|
|
Its an MDI app with 2 views but when I'm doing all this, the second view isnt even spawned. I'll be puzzling over this I guess....
Thanks so much for answering though! Have a good weekend!
ns
|
|
|
|
|
If I want to set a member variable of my inactive view from the mainframe class, how do I get a pointer to it? I was doing GetActive View but that obviously wont work if my view is inactive. Thanks,
ns
|
|
|
|
|
if you have a pointer to your doc, you can use CDocument::GetFirstViewPosition (and GetNextView) to get a list of all your views.
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
The only way i saw to get a doc pointer from the mainframe calss was to go through activeview->getdocument which is I suppose what i have to do, to get to the inactive view. Is this correct?
Luckily Ihave only two views. What is the heirarchy of views, what is the order and how do I know when I've got to the one I want (in case I had 4-5 views?)
Thanks so much for the response,
ns
|
|
|
|
|
you can always use the IsKindOf function to tell the class of each CView pointer you get:
if (pView->IsKindOf( RUNTIME_CLASS( CMyView ) ) )
{
...
}
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
I have a menu item "Display" that has COMMAND handled by the mainframe. I want a menu item "Switch" handled in my view, to disable "Display". I am thinking that I could set a flag in my "search" menu handler, and in the automatic updateUI that runs when idle, disable or enable the "display" menu. Any commments on the soundness of my approach?
Thanks,
ns
|
|
|
|
|
The update UI handler should be in the view (and refer to a view specific flag) if you want the disabling to be per-view. If it's a "global" disable, put the handler (and the flag) in the mainframe window.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hello all.
I want to know what kind of classes and what I should read about if I want to let my friend to access my computer, folders, files.... well his job folder through the internet.
I know i might have to do alot of html.. but how to let the user view his folder. Let say i create one folder for him. and only he and I can open it. even through the internet so he can view his folder anywhere in the world as long as he is online.
it there anyway i can do that??? Any useful links, books, what classes i should use??
|
|
|
|
|
this is really more of a system/network configuration thing, than a programming thing. what you need to do is to turn your PC into a file server. while programming can get you there, all of the functionality you need is pretty much already part of Windows. the realy work lies in configuring it.
i don't have any good sources for you - but i know that this isn't primarily a programming issue.
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
On a Windows server look into IIS administration. Create him a folder under wwwroot that is password protected (he'll have to enter it from the browser) and allow a directy listing for that folder only for a quick way to let him see the files (by default it's off).
You could also use Apache as the web server. In which case look into .htacess to password protect the folder. Directy listing is on by default with Apache, so you're set there.
Oh, and restrict physical access to the server.
You may also want a book on web programming with HTML, ASP, or PHP, etc.
Jeremy Falcon
Imputek
<nobr>"..." - Paul Watson 07-17
|
|
|
|
|
Hello, the codegurus around the world.;)
There are a couple of approaches to satisfy your desire.
One is the application like PC Anywhere.
AT&T UK Lab provides us the free source codes for this.
But, these cool developers use their own code difficult to understand.
(Sorry, now I don't have its URL.)
The other is Open source code project called Gnucleus project (P2P).
Check http://www.gnucleus.net
They use CAsyncSocket in their project very well.
Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper
-Masaaki Onishi-
|
|
|
|
|
|
I often heard about CImage, but what can it do???
Anybody can give some information, simple article, which explains how to use that...
Thanks in advance.
Hello World!!!
from Raphaël
|
|
|
|
|
your best bet would be msdn.microsoft.com .. they have docs and examples on everything..
-dz
|
|
|
|
|
Do you mean CBitmap ? If not, what is CImage ?
Christian
come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
|
|
|
|
|
Somethings that simplify the use of image. In fact I have a pointer of image (capture from a frame grabber) that I want to display in the client area...
|
|
|
|
|
Somethings that simplify the use of image. In fact I have a pointer of image (capture from a frame grabber) that I want to display in the client area...
Hello World!!!
from Raphaël
|
|
|
|
|
a IHTMLTextAreaElement is put into a IHTMLIFrameElement,
how can i get it. IHTMLIFrameElement has only three methods.
and no relationship with IHTMLTextAreaElement.
could anyone give me a sample for these problem?
|
|
|
|
|
can someone tell me where the best place to store permanent keys? Basicly i have some keys which i dont want my user to easily find.. and i dont want them to be removed if the user uninstalls, but it has to be a location that will exist on all windows machines.. any suggestions?
-dz
|
|
|
|
|
if u want to hide some info.why not use some xx.xml or xx.ini file. and hide it in a special dir when first time
run app.
|
|
|
|
|
dazinith wrote:
and i dont want them to be removed if the user uninstalls,
Hope you never have to get your app logo'd or certified.
Even if you win the rat race, you're still a rat.
|
|
|
|
|
when i uninstall a trial version of snagit and reinstall it it knows that my evaluation copy is still up.. thats what im trying to implement, so it would have to be a registry key or file..
ive traced how some programs do it.. and they add keys into paths im not familiar with such as: HKEY_USERS\S-1-5-21-842925246-789336058-1202660629-500\Software\...
i know that alot of trial software stores keys in hidden or secure places to keep ppl from just uninstalling and reinstalling all the time.. i dont want to use a file because id have to pick a location which would exist on every machine.. just asking for suggestions if anyone is familiar..
-dz
|
|
|
|