Questions tagged [getwindowlong]

13 questions
32
votes
4 answers

Removing window border?

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?
Kristina
  • 15,859
  • 29
  • 111
  • 181
14
votes
2 answers

How do I pinvoke to GetWindowLongPtr and SetWindowLongPtr on 32-bit platforms?

I want to P/Invoke to GetWindowLongPtr and SetWindowLongPtr, and I'm seeing conflicting information about them. Some sources say that, on 32-bit platforms, GetWindowLongPtr is just a preprocessor macro that calls GetWindowLong, and GetWindowLongPtr…
Joe White
  • 94,807
  • 60
  • 220
  • 330
4
votes
3 answers

GetWindowLong vs GetWindowLongPtr in C#

I was using GetWindowLong like this: [DllImport("user32.dll")] private static extern IntPtr GetWindowLong(IntPtr hWnd, int nIndex); But according to the MSDN docs I am supposed to be using GetWindowLongPtr to be 64bit…
Jon Tackabury
  • 47,710
  • 52
  • 130
  • 168
3
votes
1 answer

I keep getting "Unable to find an entry point named 'GetWindowLongPtrA' in DLL 'user32.dll'"

I am trying to use GetWindowLongPtrA but I keep getting the "Unable to find an entry point named 'GetWindowLongPtrA' in DLL 'user32.dll'". (also SetWindowLongPtrA getting the same error). I've tried many solutions found on Google, but they didn't…
armamoyl
  • 145
  • 1
  • 7
1
vote
3 answers

Unknown extended window style values from GetWindowLong and GetWindowInfo

I am calling querying the extended window styles of a window using the GetWindowLog property and it is returning values in many cases that are not documented in msdn. Particularly 0x00000800L and 0x00000100L or a combination of the two. Does anyone…
Jeremy
  • 44,950
  • 68
  • 206
  • 332
1
vote
0 answers

Powershell 2 - Get-WinEvent -FilterXML

Hello Powershell experts, I am trying to accomplish the following. Get the windows application log in past 30 minutes that includes the following in the log message. "Error in connection" I am not familiar with Powershell and have searched around…
kyj
  • 31
  • 3
1
vote
1 answer

VB6 SetWindowLong Causing Refresh Issue in Windows 7 64-bit

I am still supporting and old vb6 application that utilizes GetWindowLong and SetWindowLong to remove the ControlBox at runtime depending on a setting. This works great on all 32-bit systems but when it runs on a 64bit system the main window no…
dblwizard
  • 595
  • 7
  • 26
1
vote
1 answer

WM_CTLCOLORSTATIC lParam, C++ WINAPI

I'm trying to include into my Dialog Window Procedure, that when the msg WM_CTLCOLORSTATIC is received that I get the ID of the Control that is sending the message. case WM_CTLCOLORSTATIC: UINT ID = GetWindowLong((HWND)lParam,…
user3041838
0
votes
1 answer

How to import 'get_window' in python correctly?

I am trying to run a code in jupyter notbook, but I am having a problem with these lines: from skimage.transform import resize from skimage.morphology import label Those two lines are causing the problem, and this is the error message : ImportError:…
0
votes
0 answers

Determine window flags used in GWL_EXSTYLE?

I'm sure this question has been asked before, but I really don't know what it's called that I am trying to do, so I am having trouble researching it. I am trying to output the extended styles of a window to the console. So, for example, if I call…
LegitGodmode
  • 39
  • 1
  • 6
0
votes
2 answers

GetWindowLong Access denied

I try using GetWindowLong API function to get windowproc address (GWL_WNDPROC) of another window in another address space but this function return 0 and GetLastErro is 5 (Access denied) i run my program as administrator and again encountered this…
drjackool
  • 483
  • 1
  • 4
  • 9
0
votes
1 answer

winapi: removing decoration

This looks like a duplicate but hear me first. This is more on the debugging side. I'm trying to remove the borders of my window using the method here. What are some things that will make these functions not work? Hiding windows using…
kir
  • 581
  • 1
  • 6
  • 22
0
votes
1 answer

Control name from other window

I need to read a text value from other window and query that value to another application (my question will be around the 1st task)…so, I’m “spying” other window (some 3rd party application we use in connection with our product) and waiting for…
Sam Saarian
  • 992
  • 10
  • 13