|
I am using Web browser control in my program. The control ID is IDC_EXPLORER1. So now i want to hide this control at start up and display it on button click. So to hide , i am using GetDlgItem(IDC_EXPLORER1)->ShowWindow(SW_HIDE); and to show it in button click i am writing GetDlgItem(IDC_EXPLORER1)->ShowWindow(SW_SHOW); When i am using this, i am getting run time errors and the debugger is pointing to ShowWindow function of CWnd. So can anyone tell me how to hide n show this control. I also tried using a member variable for this control n using the function SetVisible of CWebBrowser wrapper class. So Just i wanna know how to show n hide the Web control.
Never postpone today's work for tomorrow
|
|
|
|
|
give a variable to this control, and VS will create a wrap class for it,then use this variable to ShowWindow
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
I have done all that. I assigned a variable with name m_browser. Now in my application am using it. Like m_browser.ShowWindow(SW_SHOW) and m_browser.ShowWindow(SW_HIDE). But it is not working and i have tried for other Microsoft registered active X controls also. It's giving run time error and the debugger is taking me to ShowWindow function.
Never postpone today's work for tomorrow
|
|
|
|
|
You can use any of those techniques (the control variable is probably best) but you need to make sure the control has been created before you try to send it messages or use its window handle in any other way. You will get run-time errors or asserts if you use any of the wrapper classes on a control with an invalid window handle (such as before the window is created or after it is destroyed).
The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
|
|
|
|
|
If I have these coordinates
(51,74),(98,59),(74,36)
I want to display window. In this window have a rectangle which size is 256x256 and have a black frame. I want to show red point at (51,74),(98,59),(74,36) and if I want to draw black line from (98,59) to (74,36). Do you know how to do that?
Thank you for your reply.
|
|
|
|
|
In OnPaint, check out SetPixel, MoveTo and LineTo.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
i want to create a dialog based MFC Application which has just one dialog box with->
1) no taskbar icon
2) a system tray icon with a menu
3) no minimize, maximize button on the dialog
how do i go 'bout it?
can any1 help me?
rishabhs
|
|
|
|
|
|
but that has minimize and maximize icons.
also it shows up in the taskbar before being minimized.
how can it stay off taskbar? and remain in system tray.
|
|
|
|
|
See this[^] article. Btw, it's impolite to shout.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
With 32 bits adresses the total adress space is 4 GB. From what I've heard Windows reserves 2 GB. It is then useless install more than 2GB RAM. Is there any way around this so you can make use of more than 2GB RAM if necessary?
Regards, Haakon S.
|
|
|
|
|
Windows can run more than one process simultaneously and each process has its own address space, so Windows can make use of more than 2GB physical RAM.
|
|
|
|
|
See Microsoft Knowledge Base article Q170756 (sorry I don't have a direct link to it; I found it in my copy of the MSDN). There is a BOOT.INI option to enable 3 GB addressing for user mode programs running under Windows NT Advanced Server and DataCenter Server.
Software Zen: delete this;
|
|
|
|
|
We must indicate the size of date when using Recevie() function, but how to peek the data size of input queue? sometimes we don't know what size is that current queue head data.
|
|
|
|
|
hi
you can use ioctlsocket function to find out how much data is available to read.
|
|
|
|
|
I split a window into two parts(left and right)using CSplitterWnd .I want to dynamically changing right view. I have a method, but it must destory last view and create the view i want.how can i change the right view and don't destory the view before
thanks!!!!!
|
|
|
|
|
|
i tried DeleteFile
it didnt work - perhaps it's just meant for "files" - not directory
norm
|
|
|
|
|
How about ::RemoveDirectory() ?
B.
|
|
|
|
|
Nice but you must have deleted all files and folders in it.
-> It seems to be a little recursive task.
Try this @ home. (B&B)
|
|
|
|
|
::SHFileOperation() is a good one!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
How do you declare a pointer to a template?
I'm trying to make a clone of the CList class, and cannot figure out how they have defined the POSITION type.
in list.h (search for 'clist' in the MSDN library), it is defined thusly:
#define POSITION CNode<type>*
This works for all class methods of my CList and CNode, however when I try and use it in code I get a "TYPE undeclared" error.
Suggestions?
- Xavier
|
|
|
|
|
I hope I am answering this before CG.
Why do you have to reinvent the wheel? Use std::list
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
Learning purposes, although I haven't looked at std::list, maybe that will shed some light.
Thanks.
- Xavier
|
|
|
|
|
we are using ODBC api call to access a oracle database.
we are using VC++.
Anyone knows how to get the SQL string with the parameter markers (?) replaced by their actual value.
Even after executing the query, parameter markers are still visible.
The goal is to use the full query to log the execution plan to file.
help is appreciated.
|
|
|
|