Solved

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

Posted on 1998-08-03
6
177 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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 and use structures 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.

757 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

13 Experts available now in Live!

Get 1:1 Help Now