comparison os2/dw.c @ 15:81833f25b1aa

Added new Dynamic Windows build information to the DWEnv struct. It reports version numbers and build time/date.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 12 Jul 2001 20:31:26 +0000
parents 176cee043f1b
children ca7a8215487a
comparison
equal deleted inserted replaced
14:176cee043f1b 15:81833f25b1aa
1384 1384
1385 dw_listbox_query_text(tmp->window, index, buf1, 500); 1385 dw_listbox_query_text(tmp->window, index, buf1, 500);
1386 1386
1387 WinQueryClassName(tmp->window, 99, classbuf); 1387 WinQueryClassName(tmp->window, 99, classbuf);
1388 1388
1389 if(id && strncmp(classbuf, "#6", 2)==0) 1389 if(id && strncmp(classbuf, "#2", 2)==0)
1390 { 1390 {
1391 char *buf2; 1391 char *buf2;
1392 1392
1393 buf2 = dw_window_get_text(tmp->window); 1393 buf2 = dw_window_get_text(tmp->window);
1394 1394
5422 env->MinorVersion = i-(((int)i/10)*10); 5422 env->MinorVersion = i-(((int)i/10)*10);
5423 } 5423 }
5424 else if (i == 10) 5424 else if (i == 10)
5425 env->MinorVersion = 1; 5425 env->MinorVersion = 1;
5426 } 5426 }
5427 strcpy(env->buildDate, __DATE__);
5428 strcpy(env->buildTime, __TIME__);
5429 env->DWMajorVersion = DW_MAJOR_VERSION;
5430 env->DWMinorVersion = DW_MINOR_VERSION;
5431 env->DWSubVersion = DW_SUB_VERSION;
5427 } 5432 }
5428 5433
5429 /* 5434 /*
5430 * Opens a file dialog and queries user selection. 5435 * Opens a file dialog and queries user selection.
5431 * Parameters: 5436 * Parameters: