$Export $Export Proc Modify* Procedure ModifyStyle(hWnd As Handle, lRemove As Long, lAdd As Long) Local Long Style = GetWindowLong(hWnd, GWL_STYLE) Style &= ~lRemove Style |= lAdd ~SetWindowLong(hWnd, GWL_STYLE, Style) ~SetWindowPos(hWnd, 0, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOMOVE | SWP_DRAWFRAME) EndProc Procedure ModifyExStyle(hWnd As Handle, lRemove As Long, lAdd As Long) Local Long ExStyle = GetWindowLong(hWnd, GWL_EXSTYLE) ExStyle &= ~lRemove ExStyle |= lAdd ~SetWindowLong(hWnd, GWL_EXSTYLE, ExStyle) ~SetWindowPos(hWnd, 0, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOMOVE | SWP_DRAWFRAME) EndProc
As you can see, I collected these in a $Library (.lg32). I'm a big fan of libraries and whenever possible I put general subroutines in a compiled module.
I'm aware of some problems with loading of LG32 files, I had them in the past as well. However, and I don't know why, I don't have them anymore ...
No comments:
Post a Comment