Use a list-view[^] (aka CListCtrl[^]) and process its NM_CLICK[^] or LVN_ITEMCHANGING[^] notifications? The second one will be fired when an item is going to be selected, so you could cancel that and change its state? You cancel the change by returning TRUE from the nmotification handler, I believe, although that page doesn't say so - the Windows Mobile equivalent page[^] does say so!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
I'm looking for a way to make a bitmap that is already displayed in the dialog become transparent, when a button is clicked and vice-versa..
or just make it disappear and then make it appear again just in the same place..
is that possible? can you help me please?
the bitmap is loaded when the dialog is initialized, but is defined as not visible, and i want to make it visible when i click a button.
i don't know if it's the best way since i'm a beginner in using MFC.
the point is to make it appear and disappear using a button, but it needs to start invisible
(sorry about my english)
My, point, although subtle, was to ensure that the values you are passing to that function are valid. Some functions/libraries place the onus of validation solely on the caller (rather than handle the bad input and fail gracefully)
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
Somewhere the program is trying to allocate a very large amount of memory. This is, I think, the cause of your problem. I haven't used this library/package, but I'm basing my conclusion on the error mesage you posted (see my last reply).
What I suggest is that you use a debugging tool to step through the program until it generates that error, and take a close look at exactly what is happening at that point. Or post here exactly which line is causing the problem.
There are three kinds of people in the world - those who can count and those who can't...