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.

Move window

Featured Replies

Posted

When I paint a window with a picture and set its Style to None I can't move it.I use mouse events to move it but it is using a lot of resources(proc) because my window actually move with the cursor.

How can I move my window just like a normal one?(with that rectangle surrounding it)

When you paint a window, you don't paint the window actually. You're just using a static window control

linked with a picture. And since by default you can't move window controls just by dragging them with

the mouse... forget it. nowai


switch(uMsg)
{
// ... case WM_LBUTTONDOWN:
SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, NULL);
break; // ...
}

^ That's what you mean?

  • Author

Thanks RaMMicHaeL ! I tried to change WM_LBUTTONDOWN to WM_RBUTTONDOWN but it doesn't work any more.Do you know why?

P.S. I work in c++ builder 2007 and I use message handlers for this.Maybe this is why it doesn't work if I want to move the window with right button.

Are you painting onto a control or onto the window itself? If you are creating a control that is the full size of the window, you will need to subclass the control and handle the WM_LBUTTONDOWN event for the specific control instead of the form in order to move it that way.

wyrda

afaik, this SendMessage call makes Windows think you actually left click on the caption bar.

That's why right click doesn't work - you cannot drag a window using the caption bar with the right mouse button.

Google for the defines WM_NCLBUTTONDOWN, HTCAPTION, it'll probably explain it better.

atom0s

If I got him right, it's just a borderless window with a picture.

  • Author

It was for a windows/form .

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.