Search:
Type: Posts; User: VictorN
Search:
Search took 1.87 seconds.
-
These article/discussions may be useful:
https://stackoverflow.com/questions/1164868/how-to-get-size-of-check-and-gap-in-check-box...
-
If you "need to show the icon 32x32" then do
m_imglist.Create(32, 32, ILC_COLOR32,1, 1);
...
::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_UnCheck_ICO),
IMAGE_ICON, 32, 32,...
-
You have to add a new custom (21x21) images to your icons.
Then load them using
::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_UnCheck_ICO),
IMAGE_ICON, 21, 21, LR_DEFAULTCOLOR));
-
The simplest way would be "resize" your icons (or just create the icons of the size 21x21) in the image editor. And then use these 21x21 icons.
-
Why do you pass 2 as the index in the image list? Your image list has the size 2, thus the only valid indexes are 0 and 1.
BTW, using SetItemImage method looks a little simpler that SetItem. ;)
-
January 16th, 2021, 12:13 PM
Run the "programs in Debug mode" is not the same as debug the program!
Have a look at
https://docs.microsoft.com/en-us/visualstudio/debugger/debugging-absolute-beginners?view=vs-2019
-
January 16th, 2021, 11:41 AM
Why presumably ?
didn't you debug your code to see the exact place of the "crash"? :confused:
-
January 15th, 2021, 07:53 AM
What if you add (the block in blue)?
if (m_pResultAnalysisDialog)
{
WINDOWPLACEMENT windowPlace;
windowPlace.length = sizeof(WINDOWPLACEMENT);
BOOL bOk =...
-
January 14th, 2021, 04:07 AM
Perhaps, this one will work?...
-
January 13th, 2021, 12:14 PM
Very simple: you should ask your questions directly in the forum posts, not in some attachments that have to be downloaded just to read what you meant.
The same is valid for the (not too long) code...
-
January 13th, 2021, 10:23 AM
Then you nave to implement owner or custom drawing!
some examples:
http://codexpert.ro/blog/2013/02/22/custom-draw-vs-owner-draw-controls/
https://www.codeproject.com/KB/list/#Custom+Draw
-
January 13th, 2021, 02:59 AM
Did you try using CListCtrl::SetBkColor? Does it work or not?
-
January 12th, 2021, 02:18 PM
std::string myString = getOwnerSerNoString();
-
January 12th, 2021, 02:15 PM
CListCtrl already has the methods to set the background ( https://docs.microsoft.com/en-us/cpp/mfc/reference/clistctrl-class?view=msvc-160#setbkcolor ) and text colors. So you don't need to handle...
-
January 12th, 2021, 01:20 PM
CListCtrl or CListBox?
The CTLCOLOR_LISTBOX belongs to the CListBox class (ListBox control)
-
January 12th, 2021, 06:49 AM
[moved from Visual C++ Programming Forum]
-
January 12th, 2021, 06:48 AM
The code you have posted has nothing to do with the native C++.
It looks like the managed code.
So I move this thread to the most appropriate Forum.
-
January 8th, 2021, 03:06 AM
Why "exit(0)"? Why "_exit()"? :confused:
Using either of these in MFC application never was a good idea! And it is still a bad idea now!
-
January 7th, 2021, 04:44 PM
Then have a look at the post#17
-
January 7th, 2021, 02:24 PM
-
January 6th, 2021, 04:39 PM
Then try the option "... from registry..." (sorry, i currently do not have any VS on my notebook, therefore cannot be more precise)
-
January 6th, 2021, 03:24 AM
[moved from Visual C++ Programming forum]
-
January 5th, 2021, 01:17 PM
If you will use VS2017 to create the Excel-MFC classes from the type library then you won't need any #import at all, neither mso.dil, nor VBE6EXT.OLB, nor excel.exe.
Only the classes created from...
-
January 4th, 2021, 02:16 PM
The best and simplest way would be using https://docs.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/automate-excel-from-mfc-fill-data
The only problem here is the...
-
January 4th, 2021, 10:11 AM
Dear Tim Paine,
whom will it be helpful to install OS which "Mainstream support ended on January 9, 2018"?
|
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
|