Changeset 153 for trunk/src/helpers/cnrh.c
- Timestamp:
- Apr 14, 2002, 1:42:05 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/cnrh.c
r147 r153 1795 1795 1796 1796 /* 1797 *@@ cnrhOpenEdit: 1798 * begins direct text editing on the first 1799 * record that is currently cursored in 1800 * the container. 1801 * 1802 * This is the recommended response when 1803 * the almost documented WM_TEXTEDIT 1804 * message comes into the container owner's 1805 * window procedure. This is the case when 1806 * the user presses the key combo that was 1807 * set for direct text editing in the "Keyboard" 1808 * object. 1809 * 1810 * Returns TRUE if direct editing was 1811 * successfully started. If FALSE is returned, 1812 * there is either no record with CRA_CURSORED 1813 * emphasis, or that record has the read-only 1814 * flag set. 1815 * 1816 *@@added V0.9.19 (2002-04-02) [umoeller] 1817 */ 1818 1819 BOOL cnrhOpenEdit(HWND hwndCnr) 1820 { 1821 BOOL brc = FALSE; 1822 CNREDITDATA ced; 1823 memset(&ced, 0, sizeof(ced)); 1824 ced.cb = sizeof(ced); 1825 ced.hwndCnr = hwndCnr; 1826 if (ced.pRecord = (PRECORDCORE)WinSendMsg(hwndCnr, 1827 CM_QUERYRECORDEMPHASIS, 1828 (MPARAM)CMA_FIRST, 1829 (MPARAM)CRA_CURSORED)) 1830 { 1831 ced.id = WinQueryWindowUShort(hwndCnr, QWS_ID); 1832 brc = (BOOL)WinSendMsg(hwndCnr, 1833 CM_OPENEDIT, 1834 (MPARAM)&ced, 1835 0); 1836 } 1837 1838 return (brc); 1839 } 1840 1841 /* 1797 1842 *@@ cnrhInitDrag: 1798 1843 * this sets up the necessary structures to begin dragging
Note:
See TracChangeset
for help on using the changeset viewer.