Questions tagged [nativewindow]

50 questions
9
votes
1 answer

SurfaceView and ANativeWindow

I have a question regarding creation of a SurfaceView and subsequently getting a ANativeWindow from it. Is it proper to do mSurfaceView = new SurfaceView(this); in: onCreate() onStart() Reason for asking: as I understand it the SurfaceView will…
gadget
  • 2,082
  • 2
  • 14
  • 11
7
votes
2 answers

How can I create a new NativeWindow in Android NDK?

I tried the test-libstdc++ demo and liked that I can start it from the console and all without running a full-grown android application. I'd like to create an opengl context so that I'd be able to execute my opengl es 2.0 app from within the console…
Albus Dumbledore
  • 12,368
  • 23
  • 64
  • 105
7
votes
3 answers

Native Window: Release Handle On Close

I am currently working on a C# .NET Add-In for Microsoft Outlook. The goal of the Add-In is, to capture the search input from the Outlook Instant Search, and show in a Custom Pane my own search results. It works pretty well, and with subclassing the…
Florian Schöffl
  • 499
  • 3
  • 12
6
votes
3 answers

AIR - set size of NativeWindow to include system chrome

How do you find out the size of the system chrome so that I can specify the window size to achieve the stage size I want? If my main window is set at 800 x 600 (stage), and I create a second window as below, it will be smaller. public function…
davivid
  • 5,910
  • 11
  • 42
  • 71
5
votes
1 answer

Show a taskbar item with a NativeWindow

My application is intended to work almost entirely through a Windows 7 taskbar item with the use of thumbnails and jump lists. I know I can easily create a Form and simply hide it, but this seems like overkill. Plus, I'd like to toy around with…
David Brown
  • 35,411
  • 11
  • 83
  • 132
4
votes
2 answers

eglCreateWindowSurface on ICS, and switching from 2D to 3D

I'm trying to make an NDK-based game work on Android ICS. It worked fine on Honeycomb and Gingerbread. The game uses some 2D rendering, some 3D rendering, switching between the two at various stages of execution. (This is not negotiable due to…
David Given
  • 13,277
  • 9
  • 76
  • 123
3
votes
0 answers

C# How to convert a parent’s hwnd (IntPtr) into NativeWindow that can be used in a Form.Show(nativewindow)

I'm trying to show a dialog over my Credential Provider tile. I call the OnCreatingWindow() method (from CredentialProvider.Interop.dll) which returns the HWND of the appropriate parent window. Before beeing able to use the handle in…
holck
  • 31
  • 2
3
votes
2 answers

Accessing contents of NativeWindow in a HTML AIR application?

I'm currently building a HTML/JS AIR application. The application needs to display to the user a different 'window' - dependant on whether this is the first time they've launched the application or not. This part is actually fine and I have the code…
3
votes
1 answer

Use of NativeWindow for ComboBox causes exception in Dispose-method

In C# Windows.Forms I want to intercept the paste-windowmessage for a combobox. As this doesn't work by overriding the WndProc-method of the combobox, because I would need to override the WndProc of the textbox inside the combobox, I decided to…
user1225775
  • 253
  • 5
  • 14
2
votes
1 answer

Return an IOleCommandTarget from processing WM_GETOBJECT in a NativeWindow

I am trying to retrieve an IOleCommandTarget reference from a panel control handle, so that I can call IOleCommandTarget.Exec() on it. NativeMethods.IOleCommandTarget target = null; if…
Hadster
  • 445
  • 1
  • 5
  • 11
2
votes
1 answer

How to check whether Flex AIR application is minimized to system tray or not?

I have an AIR Application in which i am monitoring a server. By Default, it will be minimized to system tray. Whenever server sends an alert, then minimized application in system should display a message similar to outlook(Alerts similar to, when a…
Dinesh
  • 2,026
  • 7
  • 38
  • 60
2
votes
1 answer

NativeWindow WndProc not receiving messages

Could someone shed some light on why my WndProc method as implemented below isn't receiving any messages? If I put this class below in a WinForms application and pass in that application's handle, WndProc receives messages as I would expect.…
Nick Spreitzer
  • 10,242
  • 4
  • 35
  • 58
2
votes
1 answer

How do I make an AIR NativeWindow always in front of just the app, but not in front of other windows?

I want the window to be always in front of all of the app windows, but when the app is deactivated I don't want the window to be in front of the other apps.
Stephen Horvath
  • 5,188
  • 3
  • 24
  • 31
2
votes
1 answer

C#: What is destroying my NativeWindow object and why?

I am using a NativeWindow object to subclass an unmanaged window's message pump, with the purpose of intercepting its messages. Code structure looks something like this (its psuedo C#, please excuse minor syntax problems): class AppSubclass :…
Tom Corelis
  • 4,990
  • 11
  • 35
  • 48
1
vote
1 answer

Air Native Window Active Window Change

I have a Adobe Air app (AS3, not Flex) that has 2 windows. When I click away from them onto another desktop program, I get an "Deactivate" Event (as you would expect). When I click on say Window#1 I get an "Activate" Event (as you would expect). But…
WORMSS
  • 1,625
  • 28
  • 36
1
2 3 4