Advertisement
Guest User

Untitled

a guest
Jan 29th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool CreateVList::ElementAdd(vector<CreateVCheckBox *>::iterator it, void *Data){
  2.     int newID = f_GetFreeID();
  3.     if(!newID)
  4.      return false;
  5.     char charID[10];
  6.     itoa(newID, charID, 10);
  7.  
  8.     if(it == Lista.end())
  9.         Lista.push_back(NULL);
  10.     else
  11.         Lista.insert(it, NULL);
  12.     it = GetIterator(Lista, NULL);
  13.     if(it == Lista.end())
  14.      return false;
  15.     *it = new CreateVCheckBox(&*it, ElementDrawFunc, ElementAddDrawFunc, charID, ElementFont, 0, 0, 0, f_SetElementNewWidth(), f_SetElementNewHeight(), newID, hwnd_List, Data, hInstance );
  16.     return true;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement