Page 3 of 3 FirstFirst 123
Results 81 to 109 of 109

Thread: Subclass External Programs done for you

  1. #81
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648

    Re: Subclass External Programs done for you

    The demo works, but...

    How do I adapt this to only catch messages sent from the form in the external app? I have tried (somewhat wishfully) passing the forms hwnd in instead of using findwindowex to no avail....

  2. #82
    Junior Member
    Join Date
    Dec 2006
    Posts
    28

    Question Subclass External Programs done for you

    Hi..
    This is a great code. The DLL works good. But it cant get the web applications. Is it possible to get data in web application using this DLL?
    SG

  3. #83
    New Member
    Join Date
    Apr 2007
    Posts
    2

    Re: Subclass External Programs done for you

    Hi,

    Very great work! Thanks.

    Quote Originally Posted by moeur
    Although the title of this thread mentions "subclassing" it deals with hooking and not subclassing.
    If you could actually subclass the external app, then you should be able to block the WM_DESTROY messages.

    There is a way to truly subclass an external app. What you need to do is execute the code that initiates the subclassing from within the external process. A simple way to do this would be to first set a hook in the external process, then when the hook procedure is called, it will be running in the external process so you can then subclass the window you want to prevent from closing.
    I think that might be why i cannot do what I'm trying to do: I installed a hook and can deal with the message when it occurs. Using CopyMemory I can receive data sent along, but I'd like to *modify* those date, so I need to use CopyMemory again with my modified values.
    It "looks like" it to work, as in no crash or anything, but the external app actualy behaves as if I didnot send back any new values

    Could this be the reason why, and if so could anyone help me with how to "subclass" an external app then (would another DLL be required instead of this one??), or am I missing something here/should it work fine with such hooks ?

    Thanks for your help!

  4. #84

    Thread Starter
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

  5. #85
    New Member
    Join Date
    Apr 2007
    Posts
    2

    Re: Subclass External Programs done for you

    Thanks!

    I've done some more reading & testing, but I'm getting more confused than anything else.
    Here's what I'm trying to do: add a menuitem to the menu of another app, eg. notepad, but with "complete control" over it.

    Adding the menu and getting it just a few API calls, no problem. But I set it ownerdrawn, because I want to actually draw it myself. And my problem is when dealing with the WM_MEASUREITEM, etc messages. I did it on my VB app and it that went well.

    So I tried using your great DLL to set up a hook to get the notepad's messages. I did got the message, but as I mentionned in my previous post setting my data on WM_MEASUREITEM seems to be ignored by notepad :S

    So I tried a few different ways, like instead of a CopyMemory I used a OpenProcess/VirtualAllocEx/WriteProcessMemory, because I thought that might have been the problem.
    Seems not. I got the same results. But it seems that the data are written (according to lpNumOfBytesWritten for WriteProcessMemory), actually both times: even with a single CopyMemory, I think, because if afterwards I do another CopyMemory to get back the data (like the first time, when I got the menuitem's index, etc) the new width/height I set are returned.

    I not an expert of all this, but I tried reading different posts/articles/etc but I have no idea what's happening here. To me it looks like the data are written, yet ignored by notepad??


    Even more confusing (to me), I did on WM_DRAWITEM draw my menuitem all red, to see if I could actually draw on notepad or not.
    And I can, but I'm not drawing where I should be (on menubar) but below it, within the edit area!! The horizontal position is right though, and the vertical space makes me say it looks like the problem is that I'm not draing on notepad's non-client area!! Like I got the "wrong" hDc or something...
    Again, I'm not even sure what I just said make sense, but that's all I can see.

    Does anyone ever done something like this? Or has an idea of what's the problem/how to fix this?

    Thanks.

  6. #86
    New Member
    Join Date
    Nov 2007
    Posts
    1

    Re: Subclass External Programs done for you

    How would I use this to hook all requests to shell32.dll's SHBrowseForFolder API so that the BrowseForFolder window displays shortcuts to folders (or even all files)?

  7. #87
    Lively Member
    Join Date
    May 2004
    Location
    Home
    Posts
    85

    Re: Subclass External Programs done for you

    Does your DLL support WH_CBT?

  8. #88
    New Member
    Join Date
    Mar 2008
    Posts
    8

    Question Re: Subclass External Programs done for you

    You may be tired of questions about your post “Subclass External Programs done for you” from Jan 2005. I see that your last post to this thread was just days away from being one year ago. This is probably the best example I have ever seen on line, and is probably the closest to answering my quest. I am desperately seeking a way to read a popup menu (class name "#32768). I can get the handle, I can manipulate it (activate, scroll, select) without a problem. The problem is, I am blind to the text in this type of menu and what I am selecting. I have a post “Read from Popup Menu” looking for something like your dll, ocx. Is it capable of reading this type of menu and or which selection is highlighted? I would be extremely grateful for any help! I have been seeking a solution everywhere and it appears you are my best hope in weeks. I consider myself a reasonably good VB coder but subclassing I just can’t seem to get down.
    Last edited by SDG101; Mar 6th, 2008 at 11:14 PM.

  9. #89
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Subclass External Programs done for you

    Hai,,

    hook and unhook when mouse move over the windows
    i am getting an error (some time).

    Runtime Error "5"
    Error Setting Dll Filter. 5 (5&h): Access Denied.

    Whats wrong ?

    part of my code
    Code:
        'monitor the following message(s)
        .AddMessage WM_LBUTTONDOWN, "WM_LBUTTONDOWN"
        .AddMessage WM_MOUSEMOVE, "WM_MOUSEMOVE"
    Code:
      If uMsg = WM_LBUTTONDOWN Or uMsg = WM_MOUSEMOVE Then
         uMsg = WM_NULL
      End If
    Some time when the mouse move form one window to another, this error happens.
    but not all the time .
    Last edited by Fazi; Oct 1st, 2008 at 02:18 AM.

  10. #90
    New Member
    Join Date
    Apr 2008
    Posts
    6

    Re: Subclass External Programs done for you

    Hello,
    First of all, thanks for the great dll.
    However, I'm trying to make it run on a Windows Mobile device, with the compact framework 3.5...with no success.. I've managed to modify the VB part but with my limited knowledge in C I was unsuccessful in recompiling the dll for the compact framework. I know that the functions SendMessage and SetWindowsHookEx exist in the CF (even if not documented), so it should be possible to make the project run in CF.
    Can someone with VC knowledge help me recompile the dll for the Compact Framework 3.5, please.

  11. #91
    New Member
    Join Date
    Feb 2009
    Posts
    1

    Re: Subclass External Programs done for you

    How can I hook into a program's file output. Basically I want to intercept what a program is outputing to a file and modify it before it gets there.

    Thanks

  12. #92
    Fanatic Member ididntdoit's Avatar
    Join Date
    Apr 2006
    Location
    :uoıʇɐɔoן
    Posts
    765

    Talking Re: Subclass External Programs done for you

    I just HAD to post to say - AWESOME CODING!!! THANKS MAN!!

    *rates*
    Visit here to learn to make the VB interface fit you!.
    "I have not failed 10,000 times. I have successfully identified 10,000 ways that will not work" Thomas Edison
    "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners" -- Ernst Jan Plugge

  13. #93
    New Member
    Join Date
    Mar 2009
    Posts
    3

    Re: Subclass External Programs done for you

    I actually have another dll which doesn't have any bugs, as there are some bugs in the dll that u have used. But I don't have the code for that dll. I have tried a thousand time to search the code of that dll in the internet but have failed. And also that dll let me capture all kind of messages from the notepad window
    Last edited by Chanakya69; Mar 8th, 2009 at 08:53 AM.

  14. #94
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: Subclass External Programs done for you

    Good Day Mr. Moeur,

    I am wondering if it is possible to use your dll, or some version of it, to capture the WM_CREATE message and alter the CREATESTRUCT UDT so that the lpCreateParams would contain a pointer to the MDICREATESTRUCT UDT to make an external program an actual child of a VB MDI application.
    Option Explicit should not be an Option!

  15. #95
    New Member
    Join Date
    Mar 2010
    Posts
    1

    Re: Subclass External Programs done for you

    Hello Moeur,
    when you say: To Get the string value pointed to by lParam you can use a function like this: Public Function StrFromPtr(pStr As Long) As String ...
    Where can I do the call to this funcion? In the Form or the module...

    Thanks

  16. #96
    Fanatic Member TTn's Avatar
    Join Date
    Jul 2004
    Posts
    708

    Re: Subclass External Programs done for you

    In the hook Demo 2 posted(post 2) here, I'm getting a crash when mousing down over the notepads scrollbar.
    http://www.vbforums.com/showpost.php...48&postcount=2

    To reproduce:
    Add some carriage returns, so that the scrollbar is visible.
    Press L Button down to scroll on the scrollbar.

    Am I using it wrong, or should that be filtered?

  17. #97
    Addicted Member cc2^^'s Avatar
    Join Date
    Apr 2008
    Location
    Right behind you.
    Posts
    165

    Re: Subclass External Programs done for you

    What's the childclassname? And why should it be "Edit" when i hook notepad?
    I need to know because when i hook another application with a different Parentcaption i get an error saying i must set handle before setting hook.
    I think I am, therefore, I am. I think.

  18. #98
    Addicted Member cc2^^'s Avatar
    Join Date
    Apr 2008
    Location
    Right behind you.
    Posts
    165

    Re: Subclass External Programs done for you

    Anyone?
    I think I am, therefore, I am. I think.

  19. #99
    New Member
    Join Date
    Jun 2012
    Posts
    1

    Re: Subclass External Programs done for you

    I've a new labtop working with windows 7.
    The file hookcontrol.ocx seems to be not compatible with version x86 (32bits) or X86(64bits) of regsvr32.exe.
    Is it possible to have an updated version of this ocx file or a way to compile myself on my labtop.
    Thanks in advance

  20. #100
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,892

    Re: Subclass External Programs done for you

    Try pressing the Windows key+R, then copy and paste:

    Code:
    c:\windows\syswow64\regsvr32.exe hookcontrol.ocx
    If this doesn't work, what error message are you getting?

  21. #101
    Fanatic Member coolcurrent4u's Avatar
    Join Date
    Apr 2008
    Location
    *****
    Posts
    993

    Re: Subclass External Programs done for you

    @moeur
    i need to fill fields of an embedded webbrowser in another app from my app, how can i acheive this with your dll?
    thanks
    Programming is all about good logic. Spend more time here


    (Generate pronounceable password) (Generate random number c#) (Filter array with another array)

  22. #102
    New Member
    Join Date
    Oct 2012
    Posts
    7

    Re: Subclass External Programs done for you

    Hi moeur, excellent work.

    I tried the .NET version you posted, in VB and C#, but in both cases the events don't fire from the hook. All appears to set up ok, window handle obtained, messages added, etc. An instance of EditHook (clsHook) exists and is visible in watch window. Any ideas if I have missed something? Thanks.

  23. #103
    New Member
    Join Date
    Oct 2012
    Posts
    7

    Re: Subclass External Programs done for you

    ADDENDUM it works on a Win32-only machine, but not on a Win64 machine when targeted to x86. IDEAS?

    I tried the .NET version you posted, in VB and C#, but in both cases the events don't fire from the hook. All appears to set up ok, window handle obtained, messages added, etc. An instance of EditHook (clsHook) exists and is visible in watch window. Any ideas if I have missed something? Thanks.[/QUOTE]

  24. #104
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Subclass External Programs done for you

    Quote Originally Posted by K-C-S View Post
    Hi moeur, excellent work.

    I tried the .NET version you posted, in VB and C#, but in both cases the events don't fire from the hook. All appears to set up ok, window handle obtained, messages added, etc. An instance of EditHook (clsHook) exists and is visible in watch window. Any ideas if I have missed something? Thanks.
    Try using the "Run As Administrator" option when running the program. You might need to do that on both the test program and the actual hook program to get it to work correctly.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  25. #105
    New Member
    Join Date
    Oct 2012
    Posts
    7

    Re: Subclass External Programs done for you

    Quote Originally Posted by Nightwalker83 View Post
    Try using the "Run As Administrator" option when running the program. You might need to do that on both the test program and the actual hook program to get it to work correctly.
    No, I was running in VS2010 in admin mode anyway. It DOES work on a Win32 machine, but not a Win64 machine (targeted to either x86 or 64bit). I think I read somewhere the unmanaged DLL has to be changed with regard to DWORDs. Shame, I guess I will have to keep looking....

  26. #106
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    733

    Re: Subclass External Programs done for you

    Quote Originally Posted by moeur View Post
    The above code is perhaps a little daunting so here is a simplified version for illustrative purposes.
    We'll create a project that hooks posted messages and allows the VB user to change those messages before they are passed on to the original process.
    First create the C++ dll. It will have three routines accessible to VB, so create your .def file
    Code:
    //HookDemo.def
    LIBRARY MainHook
    EXPORTS
    	InstallFilterDLL	@1
    	UnInstallFilterDLL	@2
    	SetSharedData		@5
    In your source file, do some basic steup
    Code:
    //HookDemo.cpp
    #include <windows.h>
    #include "WINUSER.H"    
    /*---------------------------------------------
              Shared Variables
    This data is shared between both prcesses.  The
    VB App has access to these variables through the
    function SetSharedData
    ---------------------------------------------*/
    #pragma data_seg(".shared")
    	bool ChangeMessage = false;
    	int Shared_uMsg = 0;
    	int Shared_wParam = 0;
    	int Shared_lParam = 0;
    	HWND hWndVB = 0; //handle to subclassed VB Window
    	HWND hWndCtrl = 0;//handle to the window we want to monitor
    #pragma data_seg()
    #pragma comment(linker, "/SECTION:.shared,RWS")
    
    //---------------------------------------------
    // Global Variables, specific to each process
    //---------------------------------------------
    	HHOOK	hmsgHooks = 0;		// Hook handle for WH_GETMESSAGE
    	HINSTANCE	hInstance;	// Global instance handle for DLL
    
    //--------------------------------------------
    //        DLL entry-point 
    //--------------------------------------------
    BOOL WINAPI DllMain(
        HINSTANCE hinstDLL,  // handle to DLL module
        DWORD fdwReason,     // reason for calling function
        LPVOID lpvReserved )  // reserved
    {
        // Perform actions based on the reason for calling.
        switch( fdwReason ) 
        { 
            case DLL_PROCESS_ATTACH:
             // Initialize once for each new process.
             // Return FALSE to fail DLL load.
    			hInstance = hinstDLL;//save dll handle for each process
                break;
    	
            case DLL_THREAD_ATTACH:
             // Do thread-specific initialization.
                break;
    
            case DLL_THREAD_DETACH:
             // Do thread-specific cleanup.
                break;
    
            case DLL_PROCESS_DETACH:
             // Perform any necessary cleanup.
                break;
        }
        return TRUE;  // Successful DLL_PROCESS_ATTACH.
    }
    OK, Now let's create those three routines
    First a routine for setting the hook
    Code:
    /*  set WH_GETMESSAGE hook
      Private Declare Function InstallFilterDLL Lib "C:\bin\HookDemo.dll" ( _
        ByVal dwThreadID As Long, _
    	ByVal ExtrnHandle As Long, _
        ByVal VBHandle As Long _
    ) As Long
    */
    __declspec(dllexport) int _stdcall InstallFilterDLL(DWORD dwThreadId, HWND ExtrnHandle, HWND VBhandle)
    {
    	if (hmsgHooks==0)
    			hWndVB = VBhandle;\\save handle to subclassed VB Window
    			hWndCtrl = ExtrnHandle;//Handle to external window
    			hmsgHooks = SetWindowsHookEx(WH_GETMESSAGE,(HOOKPROC) GetMsgProc, (HINSTANCE) hInstance, dwThreadId);
    		if (hmsgHooks==0) return GetLastError();
    	return 0;
    }
    Next a routine for removing the hook
    Code:
    /*  Remove the WH_GETMESSAGE hook
      Private Declare Function UnInstallFilterDLL Lib "C:\bin\HookDemo.dll" () As Long
    */
     __declspec(dllexport) int UnInstallFilterDLL(void)
    {
    	LRESULT result;
    	if (hmsgHooks != 0){
    		result = UnhookWindowsHookEx(hmsgHooks);
    		if (result == 0) return GetLastError();
    		hmsgHooks = 0;
    	}
    	return 0;
    }
    And a routine so that VB can change the message data
    Code:
    /* SetSharedData Allows the VB App to alter the shared data
      Private Declare Sub SetSharedData Lib "C:\bin\HookDemo.dll" ( _
        ByVal uMsg As Long, _
        ByVal wParam As Long, _
        ByVal lParam As Long _
    )
    */
    __declspec(dllexport) void _stdcall SetSharedData(int uMsg, WPARAM wParam, LPARAM lParam)
    {
    	Shared_uMsg = uMsg;
    	Shared_wParam = wParam;
    	Shared_lParam = lParam;
    	ChangeMessage = true;
    }
    Finally we have to create a routine to forward the messages to the VB App
    Code:
    /*---------------------------------------------------------------------------
    				 Filter function for the WH_GETMESSAGE
    
      The GetMsgProc hook procedure can examine or modify the message. After the hook 
    procedure returns control to the system, the GetMessage or PeekMessage function 
    returns the message, along with any modifications, to the application that 
    originally called it.
    Allows changing the message, but not removal (use WM_NULL instead)
    ---------------------------------------------------------------------------*/
    
    LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam)
    {
    	MSG *lpMsg;
    	//return immediately for negative nCodes
    	if (nCode >= 0){
    		if (nCode==HC_ACTION){
    			lpMsg = (MSG *) lParam;
    			//see if this is the window we are monitoring
    			if (lpMsg->hwnd == hWndCtrl){
    				//forward the message to VB App
    				ChangeMessage=false;
    				SendMessage(hWndVB, lpMsg->message, lpMsg->wParam, lpMsg->lParam);
    				if (ChangeMessage==true){//Did VB App make changes to the data?
    					lpMsg->message = Shared_uMsg;
    					lpMsg->wParam = Shared_wParam;
    					lpMsg->lParam = Shared_lParam;
    				}//end if change message
    			}//end if correct hWnd
    		}//end if nCode==Action
    	}//end if nCode >=0			
    	return(CallNextHookEx(hmsgHooks, nCode, wParam, lParam));
    }
    This is all you need, now here is how to use it from Visual Basic
    You need to subclass something in order to retrieve the messages sent back from the dll.
    In this example I have chosen to subclass a checkbox.
    I've omitted the sublcassing code since this is explained in detail at various spots in this forum.
    First, declare some API functions and our functions
    VB Code:
    1. Option Explicit
    2. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
    3.   ByVal lpClassName As String, _
    4.   ByVal lpWindowName As String  _
    5. ) As Long
    6. Private Declare Function GetWindowThreadProcessId Lib "user32" ( _
    7.   ByVal hwnd As Long,  _
    8.   lpdwProcessId As Long _
    9. ) As Long
    10. Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _
    11.   ByVal hWnd1 As Long, _
    12.   ByVal hWnd2 As Long, _
    13.   ByVal lpsz1 As String, _
    14.   ByVal lpsz2 As String _
    15. ) As Long
    16.  
    17. Private Const GWLP_WNDPROC = (-4)
    18. Private Const WM_CHAR = &H102
    19.  
    20. 'Make sure to change dll path to yours
    21. Private Declare Sub SetSharedData Lib "C:\bin\HookDemo.dll" ( _
    22.     ByVal uMsg As Long, _
    23.     ByVal wParam As Long, _
    24.     ByVal lParam As Long _
    25. )
    26.  
    27.  Private Declare Function InstallFilterDLL Lib "C:\bin\HookDemo.dll" ( _
    28.     ByVal dwThreadID As Long, _
    29.     ByVal ExtrnHandle As Long, _
    30.     ByVal VBHandle As Long _
    31. ) As Long
    32.  
    33.  Private Declare Function UnInstallFilterDLL Lib "C:\bin\HookDemo.dll" () As Long
    This following routine sets the hook
    VB Code:
    1. Private Sub cmdSetHook_Click()
    2. Dim hWndParent As Long
    3. Dim hWndChild As Long
    4. Dim ThreadID As Long
    5. Dim ParentCaption As String
    6. Dim ChildClass As String
    7. Dim ChildCaption As String
    8.  
    9.   ParentCaption = "Untitled - Notepad"
    10.   ChildClass = "Edit"
    11.   ChildCaption = ""
    12.  
    13.   'subclass the checkbox
    14.   Set CSubClsApp = New CSubclass
    15.   CSubClsApp.hwnd = Check1.hwnd
    16.   CSubClsApp.EnableSubclass
    17.  
    18.   'get handle to parent window
    19.   hWndParent = FindWindow(vbNullString, ParentCaption)
    20.   While hWndParent = 0
    21.     If MsgBox("Open Notepad", vbOKCancel) = vbCancel Then Exit Sub
    22.     hWndParent = FindWindow(vbNullString, ParentCaption)
    23.   Wend
    24.  
    25.   'get handle to child window
    26.   hWndChild = FindWindowEx(hWndParent, 0, ChildClass, ChildCaption)
    27.  
    28.   'get ThreadID
    29.   ThreadID = GetWindowThreadProcessId(hWndChild, 0)
    30.  
    31.   'set the hook
    32.   If InstallFilterDLL(ThreadID, hWndChild, Check1.hwnd) Then
    33.     MsgBox "Cannot Install Hook"
    34.     CSubClsApp.DisableSubclass
    35.   End If
    36.  
    37. End Sub
    Of Course we don't want our program to crash
    VB Code:
    1. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    2.   UnInstallFilterDLL
    3.   CSubClsApp.DisableSubclass
    4. End Sub
    Finally, we need to write code to handle the hook messages
    VB Code:
    1. Public Function NewWndProc( _
    2.   ByVal hwnd As Long, _
    3.   ByVal uMsg As Long, _
    4.   ByVal wParam As Long, _
    5.   ByVal lParam As Long _
    6. ) As Long
    7. 'Do your message handling here
    8. 'If you want to change the data, do it like this
    9.     If uMsg = WM_CHAR Then
    10.         'change all keyboard input to 'X'
    11.         wParam = Asc("X")
    12.         'if you want to discard message, change uMsg to WM_NULL
    13.         SetSharedData uMsg, wParam, lParam
    14.     End If
    15.         'Pass message to the default window procedure
    16.         NewWndProc = CallWindowProc(CSubClsApp.OrigWndProc, hwnd, uMsg, wParam, lParam)
    17. End Function

    And that's it. This code will hook Notepad and change all keyboard input to 'X's
    Next you might want to add a hook to trap sent messages.
    This way you can respond to WM_DESTROY messages telling you the external app is shutting down.

    Attached is the full code for the above demo.
    Note: missing files added to attached file 2/16/05
    used demo code can not change a to x?

  27. #107
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,734

    Re: Subclass External Programs done for you

    You reply to a code sample which was posted almost 14 years ago!!
    Jan 29th, 2005, 04:03 AM
    And you don't give any information what you are doing or how you are doing it.

  28. #108
    PowerPoster
    Join Date
    Jan 2020
    Posts
    5,538

    Re: Subclass External Programs done for you

    If all can use VB6 to write code is good, VB6 can also write standard DLL

  29. #109

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width