Hi all,
Anybody have tried to remove the main irrlicht window? I think it's created during function createDevice() is called. I want to remove the main window as i have the rendered screen displayed on MFC. Anybody have an idea which part of code i need to remove from the source?
thanks in advance
Irrlicht Window
Not really tried yet,
but would be very interesting having
Irrlicht output as ActiveX component in a VB app. Do you think it's possible?
anyway...
the window is created in CIrrDeviceWin32.cpp
Line 323
HWnd = CreateWindow( ClassName, "", style, windowLeft, windowTop,
realWidth, realHeight, NULL, NULL, hInstance, NULL);
Hope this could help U.
but would be very interesting having
Irrlicht output as ActiveX component in a VB app. Do you think it's possible?
anyway...
the window is created in CIrrDeviceWin32.cpp
Line 323
HWnd = CreateWindow( ClassName, "", style, windowLeft, windowTop,
realWidth, realHeight, NULL, NULL, hInstance, NULL);
Hope this could help U.
Well, for windows there is a great thing called API !!!Ryoga2k wrote:Is there any way to get this HWnd?
With it you're be able to manipulate the whole system at low level...
To get the handle of a window use this function:
Code: Select all
#include <windows.h>
HWND__* hWnd = FindWindow("CIrrDeviceWin32", NULL);
CU, Acki
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
HI,
yes this should work so far. But cannot try atm.
As I see it, on creates a window and get the handle 4it.
from VB side this could work:
Private Declare Function SendMessageA Lib "user32" ( _
ByVal hWnd As Long, ByVal uMsg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
Dim hWnd As Long
hWnd = FindWindow("CIrrDeviceWin32", 0)
SendMessageA .hWnd, MSG, 0, -1
see ref.:
http://www.geocities.com/practicalvb/vb ... sages.html
http://support.microsoft.com/default.as ... bContent=1
yes this should work so far. But cannot try atm.
As I see it, on creates a window and get the handle 4it.
from VB side this could work:
Private Declare Function SendMessageA Lib "user32" ( _
ByVal hWnd As Long, ByVal uMsg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
Dim hWnd As Long
hWnd = FindWindow("CIrrDeviceWin32", 0)
SendMessageA .hWnd, MSG, 0, -1
see ref.:
http://www.geocities.com/practicalvb/vb ... sages.html
http://support.microsoft.com/default.as ... bContent=1
Thanks a lot Acki!Originally posted by Acki
#include <windows.h>
HWND__* hWnd = FindWindow("CIrrDeviceWin32", NULL);
Yes NovaCoder, I´ll be very grateful if you post the code for passing the handle of my own window.Originally posted by NovaCoder
I can post the code up if you want it.
"There's always a way, if desire meets courage"
Conan of Cimmeria
Conan of Cimmeria