|
Hi all. I want to create a subwindow in a window, any idea how to do it?
|
|
|
|
|
Your question is difficult - need more detail. Do you have an HWND or a CWnd as your parent?
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^]
|
|
|
|
|
thnx for your concern. I have an MDI application which shows some opengl scenes. From the mainframe, i have several views from the menu. What i wanted was when i click an option from the menu, a different view appears but which need not necessarily show opengl scenes. maybe some blank window with some text in it. (data used comes from the previous opengl scene). Now since i am not able to do this, i am planning to use a subwindow which appears in the mainwindow. Ie a blank window (small one at top corner of screen)?? Any suggestion....
|
|
|
|
|
Given that everything in Windows is a window in some form or another, your question is a bit vague. What exactly is it that you are wanting to do?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
thnx for your concern. I have an MDI application which shows some opengl scenes. From the mainframe, i have several views from the menu. What i wanted was when i click an option from the menu, a different view appears but which need not necessarily show opengl scenes. maybe some blank window with some text in it. (data used comes from the previous opengl scene). Now since i am not able to do this, i am planning to use a subwindow which appears in the mainwindow. Ie a blank window (small one at top corner of screen)?? Any suggestion....
|
|
|
|
|
coolhans wrote:
Now since i am not able to do this...
What is it that you are unable to do? Having more than one view per document is a relatively painless process. For an example, see MSDN article Q99562. Also, see the "Multiple views" section of this article.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
how can i get the status of a checkbox or radiobutton in VC++ ?
regards,
kedar.
|
|
|
|
|
|
Hello everyone in the world of programming.
Im doing a research in the process migration in windows platform, and im a c/c++ begginner and having problems in writting a start_process() method. Anyone with idea can help or give related site
|
|
|
|
|
Hi,
I have created a service in C# which spawns four child processes for some specific purpose. However if the child process crashes bcoz of some reason then I need to create a new instance of the child process.
I am able to do this in C# as there are events triggered when an application shuts down.
Now for some reason I want to port the service to VC++. I want to implement the restarting feature in the service. Does any body have any idea about the same?
Regards,
Nitin Gautam.
|
|
|
|
|
Crashes as in GONE or crahses as in STUCK.
If you retain the four process handles for the four programs you started, they will be signaled when the application is 'no longer a process' but you have no idea if they are HUNG.
If I start a child process and want to know when it is gone, I just wait/watch for the child process' handle to be signaled.
|
|
|
|
|
I have a dll which gets called on every network application. Now i want to create a user-interface which will communicate with the dll. How do i make the user-interface communicate with the dll? please suggest the ways for doing it.
|
|
|
|
|
|
can u elaborate. or provide some links..
|
|
|
|
|
|
I am novice programmer.Now days I am working on one system level project.My perticular requirement is to find out low level info of system like motherboard manufacturer,the memory supported on it (i.e DDR or SDRAM).For my project I have got many useful info from registry.But as I know this info r not available in registry.I have also tried some BIOS calls but not succeeded yet.Can Any body show me the path to do this stuff.That will be great help to me.
|
|
|
|
|
Have u tried WMI. If not, try searching for classes starting with win32_ in MSDN. To start on WMI, u can find help here[^]
"Aerodynamically, the bumble bee shouldn't be able to fly, but the
bumble bee doesn't know it so it goes on flying anyway." - Mary Kay Ash
My Articles
|
|
|
|
|
Hmm do you mean to know you configuration settings about your PC? well you can simply view device manager from system proerties.
|
|
|
|
|
I have an exe say xyz.exe. Whn i click on that exe for the second time i need to re-invoke the previous instance of that application again.Could anyone help me out on finding the previous instance of an application?????
URagav
Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
|
|
|
|
|
|
hi,
under the WIN32API we have CreateMutex function...
u can use this function to check whether the appilcation is already running..
by its return values u can re-invoke the existing one...
Public Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As SECURITY_ATTRIBUTES, ByVal bInitialOwner As Long, ByVal lpName As String) As Long
this is the declaration for that function.(from API text viewer)
u can also find help in MSDN abt this.
http://support.microsoft.com/default.aspx?scid=kb;en-us;258088[^]
use this link...
heres a vb sample....
Option Explicit<br />
Const ERROR_ALREADY_EXISTS = 183<br />
<br />
Public Declare Function CreateMutex Lib "Coredll" Alias "CreateMutexW" _<br />
(lpMutexAttributes As Long, _<br />
ByVal bInitialOwner As Long, _<br />
ByVal lpName As String) As Long<br />
<br />
Public Declare Function GetLastError Lib "Coredll" () As Long<br />
<br />
Private Sub Form_Load()<br />
<br />
Dim error_code<br />
<br />
CreateMutex CLng(0), 1, App.Title<br />
If GetLastError() = ERROR_ALREADY_EXISTS Then<br />
MsgBox "Already running", vbOKOnly, App.Title<br />
App.End<br />
Else 'run the application<br />
MsgBox "OK to run"<br />
End If<br />
End Sub
all the best..
- thanks and regards,
Basavaraj P.Umadi
|
|
|
|
|
Sir how can i access the NAT router present in the LAN server programatically.
I want to do NAT Tunneling using NAT (network address translation)
protocol.
How can i do it in VC++
Means any one know about its commands etc.
Actually my server (private IP)is running on one LAN ( Public IP)
And Client(private IP) is Running on other LAN (public IP)
How can they communicate to each other ...
I Guessed that it is bcoz of NAT ..
But i not know about its Programming techniques
|
|
|
|
|
How to use directshow to stream avi or mpeg video, a remote listening server and a client player which request a remote video file by passing its ip address and file location. If possible can it be done with socket programming.
|
|
|
|
|
"... can use thread local storage to keep track of an object's internal data" from a cp article.
//now my doubt is
CMyObj ob; //my obj is stored inside stack.
CMyObj* pOb = new CMyObj(); //my obj is stored inside heap.
---------------- //now how to store in threads local storage ?
pls throw some light
|
|
|
|
|