Solved

C application a float on top of an application written in another language

Posted on 1998-08-03
6
178 Views
Last Modified: 2010-04-15
 I have an smalltalk application that takes up the entire screen and a c toolbar application.

      I want the c toolbar application  to stay a float on top of the smalltalk application without taking focus from the smalltalk application.

      OS/2 Warp client - non windows
      How do I do this?
      Need code.
thanks
0
Comment
Question by:ajam
6 Comments
 
LVL 1

Expert Comment

by:marvinm
ID: 1251936
use CreateWindowEx() with extended style WS_EX_TOPMOST.
0
 
LVL 1

Expert Comment

by:marvinm
ID: 1251937
If your using windows API that is.
0
 

Author Comment

by:ajam
ID: 1251938
Edited text of question
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 2

Expert Comment

by:duneram
ID: 1251939
or use SetWindowPos API with HWND_TOPMOST for the handle to the window of your toolbar.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1251940
I suggest you delete this question and ask again in the OS/2 area.
This really isn't about the C language...
0
 
LVL 5

Accepted Solution

by:
nebeker earned 50 total points
ID: 1251941
You can't do this in OS/2, since it doesn't have the "always on top" flag that is found in windows.  The best you can do is make the toolbar a child window of the main application, and display it as a modeless dialog.  That will allow the main window to be active and still show the toolbar dialog.

However, with this approach, if the user activates any other application, your toolbar will be covered up.
0

Featured Post

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert image to byte array 8 189
libcurl and C++ - Post JSON Data 8 1,199
voltage to force translation ? 8 97
C#, VS15, StructLayout 1 123
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now