/[winpt]/trunk/Src/wptCurrWnd.cpp
ViewVC logotype

Diff of /trunk/Src/wptCurrWnd.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 225 by twoaday, Tue Jun 6 13:37:59 2006 UTC revision 226 by twoaday, Mon Jun 12 13:40:21 2006 UTC
# Line 42  clip_clear (void) Line 42  clip_clear (void)
42      OpenClipboard (NULL);      OpenClipboard (NULL);
43      EmptyClipboard ();      EmptyClipboard ();
44      CloseClipboard ();      CloseClipboard ();
45  } /* clip_clear */  }
46    
47    
48    /* Check if the clipboard returns any data.
49       Return value: 0 on success. */
50  static int  static int
51  clip_check( void )  clip_check (void)
52  {  {
53      HANDLE clipmem;      HANDLE clipmem;
54    
# Line 63  clip_check( void ) Line 65  clip_check( void )
65      }      }
66      CloseClipboard( );      CloseClipboard( );
67      return 0;      return 0;
68  } /* clip_check */  }
69    
70    
71    /* Fabricate a "select all" keystroke sequence. */
72  static void  static void
73  wnd_msg_markall (void)  wnd_msg_markall (void)
74  {  {
# Line 127  wnd_msg_copy (void) Line 130  wnd_msg_copy (void)
130          KEYUP( (BYTE)'C', 0x2e );          KEYUP( (BYTE)'C', 0x2e );
131          KEYUP( VK_CONTROL, 0x1d );                KEYUP( VK_CONTROL, 0x1d );      
132      }      }
133  } /* msg_wm_copy */  }
134    
135    
136  static inline void  static inline void
137  wnd_msg_em_set_pos( HWND hwnd, int begin )  wnd_msg_em_set_pos( HWND hwnd, int begin )
138  {  {
139      SendMessage( hwnd, EM_SETSEL, 0, begin? 1 : -1 );      SendMessage( hwnd, EM_SETSEL, 0, begin? 1 : -1 );
140  } /* wnd_msg_em_set_pos */  }
141    
142    
143  static HWND  static HWND
# Line 164  get_curr_wnd( HWND main, int hotkey, HWN Line 167  get_curr_wnd( HWND main, int hotkey, HWN
167          *r_main = prev;          *r_main = prev;
168    
169      return fg;      return fg;
170  } /* get_curr_wnd */  }
171    
172    
173  int  int
# Line 216  leave: Line 219  leave:
219          *r_hotkey = 0; /* reset: we need this in any case */          *r_hotkey = 0; /* reset: we need this in any case */
220            
221      return rc;      return rc;
222  } /* get_window_contents */  }
223    
224    
225  int  int
# Line 246  set_window_contents( HWND old_hwnd, curr Line 249  set_window_contents( HWND old_hwnd, curr
249      SetForegroundWindow( lost );      SetForegroundWindow( lost );
250    
251      return 0;      return 0;
252  } /* set_window_contents */  }

Legend:
Removed from v.225  
changed lines
  Added in v.226

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26