Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - <b>int pascal wingetscrollbars(hwnd hwnd, hwnd *hhorizsb, hwnd *hvertsb)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
int pascal WinGetScrollbars(HWND hWnd, HWND *hHorizSB, HWND *hVertSB)

  This function is used to retrieve a window's scrollbar handles.

Parameters
  hWnd is the handle of the window which contains the scrollbars. (ie
   - the parent window).
  hHorizSB and hVertSB are pointers to handles which will be used to
   hold the returned horizontal and vertical scrollbar handles. If a
   window does not contain a particular scrollbar, the corresponding
   handle pointer will receive a NULL value.

Returns
  FALSE if hWnd was not a valid window handle, TRUE otherwise.

Example

  HWND hMain;
  HWND hVSB, hHSB;

  if (WinGetScrollbars(hMain, &hHSB, &hVSB) == TRUE)
    if (hVSB == NULLHWND)
      MessageBox("No vertical scroll bar!", NULL, NULL, "Warning", MB_OK);
    if (hHSB == NULLHWND)
      MessageBox("No horizontal scroll bar!", NULL, NULL, "Warning",MB_OK);

.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson