Search:
Type: Posts; User: VictorN
Search:
Search took 1.92 seconds.
-
January 18th, 2021, 03:53 PM
No, I cannot help you with using MSCOMM.
MSCOMM worked well in time of Win16.
But then in a real world beginning of Win32 it just sucks. :(
-
January 18th, 2021, 03:10 PM
then it's time to learn the modern technologies! ;)
-
January 18th, 2021, 02:45 PM
Are you also new to coding in VB6?
And why not using VB.Net or C#?
-
January 18th, 2021, 12:36 PM
-
January 17th, 2021, 08:35 AM
These article/discussions may be useful:
https://stackoverflow.com/questions/1164868/how-to-get-size-of-check-and-gap-in-check-box...
-
January 17th, 2021, 07:23 AM
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,...
-
January 17th, 2021, 07:08 AM
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));
-
January 17th, 2021, 06:08 AM
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.
-
January 17th, 2021, 03:58 AM
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)
|
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
|