|
as an icon editor u can use borland C's Workshop
this gives u the editing of icon is any size & then can expand or shrink it to any desired size,
though i didnt use it for icon editing , i used it for Font editing & it gave me gr8 results
surbinsho
|
|
|
|
|
use thios cool soft : http://www.aha-soft.com/articons/
rrrado
|
|
|
|
|
Thanks, guys!! That ArtIcon s/w was cool!!! I was able to design an icon, cut, paste it into VC6 and also switch it from 32x32 to 16x16 in less than an hour.
|
|
|
|
|
Hello,
I have a listcontrol with check boxes.How can i programmatically check an item???
|
|
|
|
|
If you are using CListCtrl to control the list control, use the GetCheck() and SetCheck() methods. If you are using straight Win32 API calls, use the ListView_GetCheckState() and ListView_SetCheckState() macros.
Gary R. Wheeler
|
|
|
|
|
I want to use 24bit res bitmaps in my Visual C++ 6 projects, but unfortunatly they don't load because of some limitation. Does anyone know how to get around this and be able to use 24bit bitmaps?
Thanks in advance, VC++ Gurus!
|
|
|
|
|
You can use them fine, you just can't look at them or edit them within VC++
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
|
|
|
|
|
is there a wordwrap feature in CListCtrl, so when your data gets longer than the available width, it would break and add a new line?
|
|
|
|
|
Word wrap depends upon the view. In icon view, text wraps it it's too long, unless you've set the LVS_NOLABELWRAP style. The other views don't wrap text at all. If you need text wrapping (for example, in report view), you woudl have to use custom draw.
Gary R. Wheeler
|
|
|
|
|
This executable is used to generate unique identifiers, or GUIDs, that identify classes, objects, and interfaces.
Why can I not use just a random number or something of that sort instead of using an identifier generated by GUIDGEN for doing stuff like creating a mutex etc?
Thanks!
|
|
|
|
|
You can, but the point of a GUID is that you can be (almost) certain of no name collisions. For example, lots of people might call their mutexes "MySingleInstanceMutex" but no one else will use "{182C40F0-32E4-11D0-818B-00A0C9231C29}" or whatever GUID you get from GUIDGEN.
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I am creating a property sheet with 2 property pages and several controls on the property sheet (they are shared by the 2 property pages so they need to be on the property sheet). I am having to code all of these controls without the benefit of the designer.
I am having a terrible time with the radio buttons -- I create my group box, then each of the radio buttons. They draw just fine, but the top radio button is set as default (this is fine) and if I try to select the other radio button it is marked as selected and then the app hangs.
Here is the bit of code for the 2 radio buttons:
DWORD dwStyleRBtn1 = BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP;
CRect rectRadioBtn1(LEFT, TOP, RIGHT, BOTTOM);
m_RBtn1.Create("RBtn1", dwStyleRBtn1, rectRadioBtn1, this, IDC_STATIC);
m_RBtn1.SetFont(pFont);
DWORD dwStyleRBtn2 = BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP;
CRect rectRadioBtn2(LEFT, TOP, RIGHT, BOTTOM);
m_RBtn2.Create("RBtn2", dwStyleRBtn2, rectRadioBtn2, this, IDC_STATIC);
m_RBtn2.SetFont(pFont);
m_RBtn1 and m_RBtn2 are CButton objects.
I would greatly appreciate any advice.
Thanks,
Sydney Liles
Software Engineer
|
|
|
|
|
Property sheets are containers for property pages. They are not enhanced dialogs. In fact, if you look at the source code for CPropertySheet, you'll see that it derives from CWnd, not CDialog.
I think you can create the effect you are looking for using a header control in a dialog. The two property pages are then simple modeless dialogs (that are children of the dialog containing the header) that you show/hide based on messages from the header control. The additional radio buttons can then sit in the 'parent' dialog.
Gary R. Wheeler
|
|
|
|
|
I am doing some more work on my article, and am having problems with a CList<> static object for one of my base classes.
static CList<CPlugInObject, CPlugInObject&> m_PostPlugInMapList ;
CList<CPlugInObject, CPlugInObject&> CPlugInMap::m_PostPlugInMapList ;
Now if I step into the constructor of this, its all OK.
But when I access this object in a member function like this:
CPlugInMap::m_PrePlugInMapList.AddTail(entry) ;
i get an assertion error in objcore.cpp at line 101
if (!AfxIsValidAddress(pOb, pOb->GetRuntimeClass()->m_nObjectSize, FALSE))
{
TRACE0("ASSERT_VALID fails with illegal pointer.\n");
if (AfxAssertFailedLine(lpszFileName, nLine))
AfxDebugBreak();
return;
}
And if I look at the pOb object, the vtable pointer is in deed NULL! But it shouldn't be!
A bit of background in this is that this code is from a library (.LIB only) which the application and a DLL both link against. So, I could possibly have 2 copies of the same static object, one in the app and one in the DLL.
So, do I have to make my library also have a DLL which both the APP and DLL link against to make sure I only get one copy of the object, or is there another way around this?
Any suggestions welcome!
Roger Allen
Sonork 100.10016
I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
|
|
|
|
|
Roger Allen wrote:
So, do I have to make my library also have a DLL which both the APP and DLL link against to make sure I only get one copy of the object, or is there another way around this?
Yep, your static object exists in both executables (.exe and .dll).
You can switch to .dll. You can also create different integration model (from the class names I guess you're creating some plugin framework.) which uses/knows of plugin map only in .exe or main .dll.
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
Cheers Tomasz, it was late last night when I encountered the problem and didn;t really have the time or the inclination to look further into it just then. THanks for clarifying my thoughts.
Tomasz Sowinski wrote:
from the class names I guess you're creating some plugin framework
Yes, thats exactly what I am doing.
Roger Allen
Sonork 100.10016
I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
|
|
|
|
|
I have created a statically linked VS6 application that runs on a CD-ROM that will search and display encrypted data from that CD. It has to be a self-contained app with no dependencies ie run anywhere from any CD, this is working fine in a single cd state.
But the client wants multi-cd capability for future growth and when searching from the 1st CD everything again is fine, but when searching for data on the second CD, W2K throws up a dlg with this msg 'The wrong volume is in the drive. Please insert volume [Name of CD] into drive R:.'. After clicking any button I get this message 'The instruction at "0x00439558" referenced memory at "0x00439558". The required data was not placed into memory because of an I/O error status of "0xc0000012"'.
On Win95 I just get the blue screen (cannot read CD) only!
Any ideas on how to resolve this (I have attached remotely to a debug version and stepped through the code, still no wiser)??
SR
|
|
|
|
|
When you say "multi-cd" here, I assume you are talking about multiple CD's and only one CD-ROM drive. Your problem seems to indicate this.
First you have to understand how loading and running programs is handled on NT. Then you apply the linker switch
/SWAPRUN:CD
Now your binary image (the program) is available even after you remove the mentioned CD.
If you also want to "help" the user by ejecting the wrong CD and ask for the correct volume, you can have a look at Q165721.
|
|
|
|
|
Hello,
I have created (in code, not the wizard) an array of CEdit boxes. I would like to be notified when the user has clicked in one of these boxes (and which box they clicked in). How would I get MFC to send me a message?
thanks!
JennyP
|
|
|
|
|
IDC_EDIT1 - IDC_EDITn are in range
ON_CONTROL_RANGE(BN_CLICKED, IDC_EDIT1, IDC_EDITn, OnEditRangeClick )
afx_msg void OnEditRangeClick(UINT uID)
ÿVOTD:19 "My dear brothers, take note of this: Everyone should be quick to listen, slow to speak and slow to become angry, 20for man's anger does not bring about the righteous life that God desires." - Jam 1:19
|
|
|
|
|
Thanks for the reply...
So in my code, the "IDC_EDIT1" would be the 2200 (the control's nID)?
m_CEAvailable[i].Create(EditStyle | WS_TABSTOP, CERect, this, 2200+i);
JennyP
|
|
|
|
|
Yes! but I would advise you to define IDC_EDIT1 (or whatever the name you like) and use it instead, cleaner!
I am in YYY
|
|
|
|
|
Hello,
I would like for my report-mode list control to do the following:
* Have text-wrapping on one line so that it's taller than a regular one-line item.
* Change the font (not just color) of each item and further, each sub-item.
Any suggestions or pointers to where to search? I've searched the MSDN somewhat and haven't found anything obvious.
Thanks!
JennyP
|
|
|
|
|
Look in the MSDN Library for "custom draw" in the sections on the Common Controls. In the October 2001 edition, it's under Platform SDK Documentation \ User Interface Services \ Windows Common Controls \ Custom Draw Controls.
Gary R. Wheeler
|
|
|
|
|
I have been playing around with ICopyHook, and have made a Shell Extension which implement ICopyHook, and it works perfect
The only problem is that ICopyHook only works with printers and folders. Is there any way to make something similar for files...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|