Changeset 366 for trunk/dll/comp.c
- Timestamp:
- Jul 27, 2006, 4:17:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r362 r366 18 18 12 Jul 06 SHL Renames and comments 19 19 13 Jul 06 SHL Use Runtime_Error 20 26 Jul 06 SHL Drop unreachable CN_... code 20 21 21 22 ***********************************************************************/ … … 1842 1843 break; 1843 1844 1844 // fixme to be gone - field edits not allowed1845 1845 case CN_BEGINEDIT: 1846 {1847 PFIELDINFO pfi = ((PCNREDITDATA)mp2)->pFieldInfo;1848 PCNRITEM pci = (PCNRITEM)((PCNREDITDATA)mp2)->pRecord;1849 1850 if (pfi || pci) {1851 PostMsg(hwnd,1852 CM_CLOSEEDIT,1853 MPVOID,1854 MPVOID);1855 // DosBeep(250,100); // fixme1856 Runtime_Error(pszSrcFile, __LINE__, "CN_BEGINEDIT unexpected");1857 }1858 }1859 break;1860 1861 // fixme to be gone - field edits not allowed1862 1846 case CN_REALLOCPSZ: 1863 cmp = INSTDATA(hwnd); 1864 if (!cmp) 1865 Runtime_Error(pszSrcFile, __LINE__, "no data"); 1866 else { 1867 PFIELDINFO pfi = ((PCNREDITDATA)mp2)->pFieldInfo; 1868 PCNRITEM pci = (PCNRITEM)((PCNREDITDATA)mp2)->pRecord; 1869 HWND hwndMLE; 1870 CHAR szData[CCHMAXPATH],testname[CCHMAXPATH],*p; 1871 1872 Runtime_Error(pszSrcFile, __LINE__, "CN_REALLOCPSZ unexpected"); 1873 if (!pci && !pfi) { 1874 hwndMLE = WinWindowFromID(WinWindowFromID(hwnd, 1875 SHORT1FROMMP(mp1)),CID_MLE); 1876 WinQueryWindowText(hwndMLE, 1877 sizeof(szData), 1878 szData); 1879 p = strchr(szData,'\n'); 1880 if (p) 1881 *p = 0; 1882 p = strchr(szData,'\r'); 1883 if (p) 1884 *p = 0; 1885 bstrip(szData); 1886 if (*szData) { 1887 if (!DosQueryPathInfo(szData, 1888 FIL_QUERYFULLNAME, 1889 testname, 1890 sizeof(testname))) { 1891 if (!SetDir(cmp->hwndParent, 1892 hwnd, 1893 testname, 1894 1)) { 1895 if (SHORT1FROMMP(mp1) == COMP_LEFTDIR) 1896 strcpy(cmp->leftdir,testname); 1897 else { 1898 strcpy(cmp->rightdir,testname); 1899 *cmp->rightlist = 0; 1900 } 1901 PostMsg(hwnd, 1902 UM_SETUP, 1903 MPVOID, 1904 MPVOID); 1905 PostMsg(hwnd, 1906 UM_SETDIR, 1907 MPVOID, 1908 MPVOID); 1909 } 1910 } 1911 } 1912 } 1913 } 1847 // fixme to be gone - field edits not allowed 1848 Runtime_Error(pszSrcFile, __LINE__, "CN_BEGINEDIT/CN_REALLOCPSZ unexpected"); 1914 1849 break; 1915 1850
Note:
See TracChangeset
for help on using the changeset viewer.