home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code2 / texthook / txthook.txt < prev   
Text File  |  1992-09-08  |  959b  |  40 lines

  1. TXTHOOK.DLL
  2.  
  3. Simulates 'ES_NOHIDESEL' for VB Textbox plus set caret bitmap and overstrike.
  4.  
  5. Author: Jeff Simms - CIS 72200,3173  
  6.  
  7. Date: September 7, 1992 - Ver 1.0
  8.  
  9.  
  10. ***YOU MUST CALL SETTEXTHOOK() FIRST***
  11.  
  12. 1) To start the 'no hide selected feature' call SetTextHook():
  13.  
  14.    Call SetTextHook(Text1hWnd%, hWnd)
  15.  
  16.    with the handle to the textbox and the form as arguments.
  17.  
  18. 2) To start 'overstrike' mode call TextOverstrike():
  19.  
  20.    Call TextOverstrike(TRUE)
  21.  
  22.    with a boolean switch as the argument.
  23.  
  24. 3) To set a bitmap as the caret call CaretBitmap():
  25.  
  26.    Call CaretBitmap(hbitmap)
  27.  
  28.    with the handle to a bitmap (from LoadBitmap() - see ex. in demo)
  29.  
  30. 4) To unhook the textbox you call UndoTextHook():
  31.  
  32.    Call UndoTextHook(0)
  33.    
  34.    with zero as argument. ***This call will disable the textbox.***
  35.    It can be reenabled with SetTextHook(). This is not by design. This
  36.    is what happens!
  37.  
  38. **** USE AT OWN RISK *****
  39.  
  40.