wndproc Questions
7
Solved
is there a way I can stop the horizontal scroll bar from ever showing up in a listview? I want the vertical scroll bar to show when needed but I want the horizontal scroll bar to never show up.
I ...
Nappy asked 17/12, 2010 at 1:37
11
I'm interested to know the best / common way of storing a this pointer for use in the WndProc. I know of several approaches, but each as I understand it have their own drawbacks. My questions are:
...
2
How can I override WndProc in WPF?
When my window close, I try to check if the file i'm using was modified, if so, I have to promt the user for "Do you want to save changes?" message, then close th...
Dramatic asked 17/7, 2009 at 1:52
5
I'm working in an IDE which creates a hwnd and its respective WndProc LRESULT CALLBACK. I need to change the WndProc to a custom one.
I've read that SetWindowLong would do the job, but I can't find...
3
Solved
I am currently working on a C# .NET Add-In for Microsoft Outlook.
The goal of the Add-In is, to capture the search input from the Outlook Instant Search, and show in a Custom Pane my own search res...
Noninterference asked 11/8, 2015 at 15:16
6
Solved
I've created a borderless WPF window by setting the following window properties in XAML:
... WindowStyle="None" AllowsTransparency="True" ...
This causes a number of issues:
1) Resolved: It no ...
5
i have this abstract code :
i want to use lParam (last parameter) in CreateWindowEx() to save a pointer to a class thats declared in the begining of main - SaveArr. then, i want to use it in the f...
9
Solved
In Windows Forms, I'd just override WndProc, and start handling messages as they came in.
Can someone show me an example of how to achieve the same thing in WPF?
0
I am building a custom datetimepicker control derived from the standard datetimepicker control and I need to deal with it's messages in the WndProc override.
I have scoured the web but the followi...
Luckett asked 14/11, 2016 at 11:19
5
Solved
3
Solved
1
Solved
I wrote the WndProc method for a moveable control such this:
protected override void WndProc(ref Message m)
{
const int WM_NCHITTEST = 0x0084;
if (m.Msg == WM_NCHITTEST)
{
base.WndProc(re...
3
Solved
I am trying to write a class library that can catch the windows messages to notify me if a device has been attached or removed. Normally, in a windows forms app I would just override the WndProc me...
Fever asked 13/1, 2010 at 23:42
2
Solved
I have been looking around and haven't really seen much information on why someone would override wndproc to handle messages.
So I wondering:
Why do it?
When to do it?
Whats its general purpose...
Josephinejosephson asked 21/5, 2015 at 15:56
2
Solved
I would like to know if its possible to specify a WndProc for a Child Window created by CreateWindowEx.
I have created a Window Class, the Main Window, the Window Procedure and a Message Loop alre...
Workbench asked 5/6, 2015 at 13:40
4
I'm trying to write a simple application in Java that will communicate with an USB device. The USB device is made by me using a Microchip Microcontroller. The communication is rather simple, since ...
3
Solved
How do I get the coordinates of a WM_NCHITTEST message in C# code?
I'd love to get the fastest way, because performance is a requirement.
1
Solved
I like to have my form borderless in C#. So I used this code:
FormBorderStyle = FormBorderStyle.None;
But it removes the aero effect of windows 8. The form opens suddenly like a blink.
How can ...
Lillith asked 8/7, 2014 at 21:21
0
EDIT: tl;dr go to the first comment.
This question stems from another question of mine Get MouseDown event when mouse goes down on Form border?
In that question I needed to have a form fire an e...
2
Solved
I'm trying to bind a non-static class member to a standard WNDPROC function. I know I can simply do this by making the class member static. But, as a C++11 STL learner, I'm very interested in doing...
Readily asked 10/8, 2013 at 12:4
1
Solved
I am trying to keep one particular WPF window in focus, meaning that it should not change the window style when losing focus (e.g. like the standard Windows Taskbar). To achieve this, I hook into t...
2
Solved
I'm working on a kiosk style application where I need to control the shutdown/restart of the PC when the power button is pressed. Thanks to this post, I'm about 90% of the way there.
In control p...
Ismaelisman asked 23/4, 2013 at 21:25
3
Solved
To communicate with a certain service, I have to override the WindProc. and receive window messages.
However, when the form is minimized, I get no longer any message. I know that it has to be like...
2
Solved
If I have a console application with a handle to it set up like so;
HWND hWnd = GetConsoleWindow();
Then how do I set up a new wndProc for the window?
I tried using
SetWindowLong(hWnd, GWL_WNDP...
Chrysarobin asked 14/11, 2012 at 1:11
3
Solved
Making a simple application, so when the user logs out of Windows, it of course shuts the application down. We are making a simple USB Alert application which STOPS shutdown if a USB is detected wh...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.