-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I am making some changes to a CSliderCtrl using the Custom Draw, the control is to be used in a dialog. Here is the structure:
In my MessageMap I have : ON_NOTIFY_REFLECT_EX(NM_CUSTOMDRAW, OnNMCustomdraw)
The OnNMCustomdraw method looks like the following:
BOOL CCustomSliderCtrl::OnNMCustomdraw(NMHDR…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a window with a solid border around it. How can I remove the border(all of the non-client area) by using SetWindowLong and GetWindowLong?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a window with a solid border around it. How can I remove the border(all of the non-client area) by using SetWindowLong and GetWindowLong?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello, I created a small app in C# that removes border and caption from window, then it sets size to the user's resolution and centers it. It's a utility for me to use when I want to play games in windowed mode without being annoyed by the borders. Everything works fine with most games, but I tried…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
public partial class Form1 : Form
{
[DllImport("coredll.dll")]
static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
const int GWL_WNDPROC = -4;
public delegate int WindProc(IntPtr hWnd, uint msg, long Wparam, long lparam);
public Form1()
{
InitializeComponent();
…
>>> More