Hi all !
I want set styles for window as WS_EX_CLIENTEDGE. I found this style in Borland\BCC55\Include\winuser.h
How I can use this file in my programm
Hi all !
I want set styles for window as WS_EX_CLIENTEDGE. I found this style in Borland\BCC55\Include\winuser.h
How I can use this file in my programm
Natter,
You may use the clause STYLE:
DEFINE WINDOW oWnd STYLE nOr( WS_OVERLAPPEDWINDOW, WS_EX_CLIENTEDGE )
Better do it this way, as it is an extended style:
SetWindowLong( oWnd:hWnd, GWL_EXSTYLE, WS_EX_CLIENTEDGE )
or
SetWindowLong( oWnd:hWnd, GWL_EXSTYLE, nOr( GetWindowLong( oWnd:hWnd, GWL_EXSTYLE ), WS_EX_CLIENTEDGE ) )
to keep the previous extended style too
Thank, Antonio ! I do it. But I get error
"Variable WS_EX_CLIENTEDGE not found"
I must insert #INCLUDE *.ch to my program for description this WS_EX_
variables, but I found this in Winuser.h only
>I must insert #INCLUDE *.ch to my program for description this WS_EX_
variables, but I found this in Winuser.h only
You have found the proper solution. This manifest constant is a Windows API value.
All right. How I can compiling Winuser.h together my programm.
Put this at the top of your PRG.
Thank all !
Natter,
I used this
...
ON INIT ownd:oWndClient:ClientEdge()
..
Thank, Fraxzi !
I work with external applications and change styles their different windows interactive.
Natter,
>#include "winuser.h" - it's not work.
This was probably because your PATH needed to be SET so the compiler could find it. Or, you could copy winuser.h to the application source directory.
James
PATH is right
Well, I copy winuser.h to the application source directory
set #include "winuser.h" to my programm and compiled
see file Clip.log
winuser.h(11) Error E0024 Error in #pragma
winuser.h(38) Error F0028 Can't open #include file: 'stdarg.h'
and etc.
Natter,
OK, it seems like it also wants another file.
Try this instead. Instead of putting #include "winuser.h" do this:
That should solve it.
James
Yes, I do it. You know the others value ?