FRACTALS

ѕ даРЪвРЫРе
іРЫХаХп ШЧЮСаРЦХЭШЩ даРЪвРЫЮТ
їаЮУаРЬЬл ФЫп ЯЮбваЮХЭШп даРЪвРЫЮТ
БблЫЪШ ЭР ФагУШХ бРЩвл Ю даРЪвРЫРе
ЅРЯШиШ бТЮШ ТЯХзРвЫХЭШп



 
 

LOGO
Предыдущая Следующая

сложение В. Библиотека утилит Windows

281

стинг В.2.6. Функиия WinMain лля системы IMG. Шаги, которые выполняются в

юлолжение функции WinMain лля типичного приложения UWL, выделены

tmdi_fгame_window *img_frame_window; tenc_window_manager *enc_jnanager;

tself_org_enc_window_manager *self_org_enc__manager ; tdec_window_manager *dec__manager ; tsub_window__manager *sub__manager ; tplt2d__window_manager *plt2d_manager ; int width,height;

// Step 4: Fill the entries in the child type linked list Create

// one entry for each type of child window. The type_id is the // menu resource id for the menu item that will open this child // window; the_class is the Windows class string defined above.

child_list = (tmdi_type_list_struct *)

malloc ( (size_t) sizeof (tmdi_type_list__struct) ) ; child_type = child__list; child_type->type_id = IMGjDPEN; child_type->the_class = szIMGSClass; child_type->the_title = IMG_title;

child_type->next = (tmdi_type_list__struct *)

malloc ( (size_t) sizeof (tmdi_type_list_struct) ) ; child_type = child_type->next; child_type->type_id = IMG_OPEN_RANGE; child_type->the_class = szDECSClass; child_type->the_title = DEC_title;

/* Commands IMG_OPEN_RANGE and IMGJDPEN_BINARY_RANGE correspond to the same window type. */

child_type->next = (tmdi_type_list_struct *)

malloc ( (size_t) sizeof (tmdi_type_list_struct) ) ; child_type = child_type->next; child_type->type_id = IMG_OPEN_BINARY__RANGE ; child_type->the_class = szDECSClass; child_type->the_title = DEC_title;

child_type->next = (tmdi_type_list__struct *)

malloc ( (size_t) sizeof (tmdi_type_list_struct) ) ; child_type = child_type->next; ch i 1 d_ t ype - > t ype_i d = IMG_OPEN_SUB ; child_type->the_class = szSUBSClass; child_type->the_title = SUB_title;

child_type->next = (tmdi_type__list_struct *)

malloc ( (size_t) sizeof (tmdi_type_list_struct) ) ; child_type = child_type->next; child_type->type_id = IMG_OPEN_PLOT ; child_type->the_class = szPLOTSClass; child_type->the_title = PLOT title;

282

Фракталы и вей влеты для сжатия изображений в действие


Предыдущая Следующая


Галерея фракталов

 

Hosted by uCoz