Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

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

 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
ajam
Asked:
ajam
1 Solution
 
marvinmCommented:
use CreateWindowEx() with extended style WS_EX_TOPMOST.
0
 
marvinmCommented:
If your using windows API that is.
0
 
ajamAuthor Commented:
Edited text of question
0
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

 
duneramCommented:
or use SetWindowPos API with HWND_TOPMOST for the handle to the window of your toolbar.
0
 
alexoCommented:
I suggest you delete this question and ask again in the OS/2 area.
This really isn't about the C language...
0
 
nebekerCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now