Changeset 1704
- Timestamp:
- Feb 8, 2014, 4:31:01 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/dll/mainwnd.c ¶
r1701 r1704 6252 6252 6253 6253 LINKCMDS *info; 6254 CHAR s[120]; 6254 6255 6255 6256 info = cmdhead; 6256 6257 while (info) { 6258 sprintf(s, "%s {%i}", info->title, info->ID); 6257 6259 WinSendMsg(hwndCmdlist, LM_INSERTITEM, 6258 MPFROM2SHORT(LIT_END, 0), MPFROMP( info->title));6260 MPFROM2SHORT(LIT_END, 0), MPFROMP(s)); 6259 6261 info = info->next; 6260 6262 } … … 6584 6586 6585 6587 WinSendMsg(hwndCmdlist, LM_QUERYITEMTEXT, 6586 6588 MPFROM2SHORT(sSelect, CCHMAXPATH), MPFROMP(s)); 6587 6589 p = strrchr(s, '}'); 6588 6590 p = 0; … … 6591 6593 WinPostMsg(hwnd, 6592 6594 WM_COMMAND, 6593 MPFROM2SHORT(atol(p), 0), //IDM_COMMANDSTART + sSelect, 0), 6595 MPFROM2SHORT(atol(p), 0), //fixme GKY this traps in atol the {} probably don't exist 6596 //IDM_COMMANDSTART + sSelect, 0), 6594 6597 MPVOID); 6595 6598 }
Note:
See TracChangeset
for help on using the changeset viewer.