Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

keep the window on top

Featured Replies

Posted

Hi,

I'm coding on some win32 c++ app. What API should I use to keep the window on top of other windows regardless if it is selected or not?

I'm just guessing it is an API, but I'm not sure if it is one. :confused:

You should set the windows extended style to WS_EX_TOPMOST

Hi here is a masm example

invoke IsDlgButtonChecked,hWnd,IDC_ALWAYSONTOP

.if eax==BST_CHECKED

mov eax,HWND_TOPMOST

.else

mov eax,HWND_NOTOPMOST

.endif

invoke SetWindowPos,hWnd,eax,0,0,0,0,SWP_NOMOVE or SWP_NOSIZE

I think this is not difficult to translate in c++

greets,

  • Author

Thanks!

So very helpful!

:thumbsup:

Use SetWindowLong (Ptr if you want it to support x64) or just SetWindowPos()

get the Window handle (hWnd) and use SetWindowPos on it, with IDC_ALWAYSONTOP or WS_EX_TOPMOST :) .

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.