Click here to Skip to main content
15,901,505 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionCOM Instantiation. Pin
mh@markhoscik.plus.com29-Oct-09 4:50
mh@markhoscik.plus.com29-Oct-09 4:50 
QuestionHow to implement drived Interface using ATL? Pin
kcynic20-Oct-09 17:10
kcynic20-Oct-09 17:10 
AnswerRe: How to implement drived Interface using ATL? Pin
«_Superman_»21-Oct-09 11:47
professional«_Superman_»21-Oct-09 11:47 
GeneralRe: How to implement drived Interface using ATL? Pin
kcynic22-Oct-09 0:41
kcynic22-Oct-09 0:41 
GeneralRe: How to implement drived Interface using ATL? Pin
Lim Bio Liong4-Nov-09 18:30
Lim Bio Liong4-Nov-09 18:30 
GeneralRe: How to implement drived Interface using ATL? Pin
kcynic4-Nov-09 18:47
kcynic4-Nov-09 18:47 
GeneralRe: How to implement drived Interface using ATL? Pin
Lim Bio Liong4-Nov-09 18:50
Lim Bio Liong4-Nov-09 18:50 
GeneralRe: How to implement drived Interface using ATL? Pin
kcynic4-Nov-09 18:58
kcynic4-Nov-09 18:58 
GeneralRe: How to implement drived Interface using ATL? Pin
Lim Bio Liong4-Nov-09 19:04
Lim Bio Liong4-Nov-09 19:04 
GeneralRe: How to implement drived Interface using ATL? Pin
kcynic4-Nov-09 19:15
kcynic4-Nov-09 19:15 
GeneralRe: How to implement drived Interface using ATL? Pin
Lim Bio Liong4-Nov-09 19:18
Lim Bio Liong4-Nov-09 19:18 
GeneralRe: How to implement drived Interface using ATL? Pin
kcynic4-Nov-09 19:46
kcynic4-Nov-09 19:46 
QuestionIs there any code library available for developing BHOs? Pin
Ziink9-Oct-09 10:44
Ziink9-Oct-09 10:44 
AnswerRe: Is there any code library available for developing BHOs? Pin
«_Superman_»10-Oct-09 10:36
professional«_Superman_»10-Oct-09 10:36 
Questionhow do i change the color of a rebar? Pin
Nicolai M3-Oct-09 3:04
Nicolai M3-Oct-09 3:04 
AnswerRe: how do i change the color of a rebar? Pin
Michael Dunn13-Oct-09 8:30
sitebuilderMichael Dunn13-Oct-09 8:30 
QuestionActiveX Control Test Container unavailable in VS2008? Pin
nicknotyet30-Sep-09 6:28
nicknotyet30-Sep-09 6:28 
AnswerRe: ActiveX Control Test Container unavailable in VS2008? Pin
Stuart Dootson1-Oct-09 22:21
professionalStuart Dootson1-Oct-09 22:21 
GeneralRe: ActiveX Control Test Container unavailable in VS2008? Pin
nicknotyet2-Oct-09 5:06
nicknotyet2-Oct-09 5:06 
GeneralRe: ActiveX Control Test Container unavailable in VS2008? Pin
Pat Brenner (MSFT)18-Mar-10 9:53
Pat Brenner (MSFT)18-Mar-10 9:53 
QuestionUpdating toolbar button text & creating dropdown buttons Pin
itzuke28-Sep-09 22:37
itzuke28-Sep-09 22:37 
QuestionHow to move a window only use WM_XXX message without MoveWindow or SetWindowPos? Pin
hawkgao012928-Sep-09 20:25
hawkgao012928-Sep-09 20:25 
AnswerRe: How to move a window only use WM_XXX message without MoveWindow or SetWindowPos? Pin
hawkgao012928-Sep-09 21:20
hawkgao012928-Sep-09 21:20 
QuestionCImageList and CTreeViewControl Pin
Nicolai M27-Sep-09 9:23
Nicolai M27-Sep-09 9:23 
AnswerRe: CImageList and CTreeViewControl Pin
Nicolai M27-Sep-09 12:52
Nicolai M27-Sep-09 12:52 
Update on my problem, found out it added it as 1 large bitmap and didn't make it into a list as CreateFromImage does, then i've tried to make the bitmap into icons and adding them like this:
HINSTANCE hDLL = LoadLibrary(_T("Resource.dll"));
if(hDLL){
   CImageList imgList;
   imgList.Create(16, 16, ILC_MASK, 0, 16);
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(104)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(105)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(106)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(107)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(108)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(109)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(110)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(111)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(112)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(113)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(114)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(115)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(116)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(117)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(118)));
   imgList.AddIcon(LoadIcon(hDLL, MAKEINTRESOURCE(119)));
   ctrlTree.SetImageList(imgList);
   FreeLibrary(hDLL);
}

with this solution it only adds the last icon, and leaves a load of blank spaces. only showing the first 16x16 pixels.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.