|
Ok, thank you
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
The while(1) is dangerous.
I would do it so :
int i=MAX_COL;
LVCOLUMN *pLVCol;
while (i>0)
{
if (m_clMainView.GetColumn(0,&pLVCol)==FALSE) break;
if(m_clMainView.DeleteColumn(0) == FALSE) break;
i--;
}
and give MAX_COL the current number of columns if you have it, or any value which will never be exceeded. That way, you will always come out of your loop, whatever happens.
~RaGE();
|
|
|
|
|
Good idea! I'll do it so.
Thank you
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Yes, you should always write 8 lines of code when one will do. That way people will think you are earning your salary.
while(m_clMainView.DeleteColumn(0));
--------
There are 10 types of people in this world. Those who know binary and those who don't.
|
|
|
|
|
There are 10 types of people in this world. Those who know binary and those who don't.
Trust in the code Luke. Yea right!
|
|
|
|
|
I have this error during build:
LomalkaBrowser error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CPageSearch::GetRuntimeClass(void)const " (?GetRuntimeClass@CPageSearch@@UBEPAUCRuntimeClass@@XZ)
Generally I know what is a linking and what it does.
In this case I can gues that I need to link some lib, but which one?
|
|
|
|
|
did you DECLARE_DYNCREATE(CPageSearch) without IMPLEMENT_DYNCREATE(CPageSearch, CObject)?
|
|
|
|
|
Yes I did.
Thank you for good pointing!
I read docs about MFC macroses and then remove DECLARE_DYNCREATE(CPageSearch).
|
|
|
|
|
I am trying to format a string for a multiline edit box, but I cannot make a line break using \n . Instead of breaking the line it outputs a box and prints the next line on the same line. Anyone have any ideas?
Matt
|
|
|
|
|
Try \r\n or \x0D\x0A rather than just a line feed.
|
|
|
|
|
basementman wrote:
Try \r\n
Thanks, that worked
Matt
|
|
|
|
|
Have you specified the ES_MULTILINE style?
|
|
|
|
|
Yeah, thats the first thing I checked.
Matt
|
|
|
|
|
|
Hi,
when i use the "Dependency Walker" to see list of exported function in a .DLL file,i find some functions that have "W" and "A" letters at the end of their name.what is the meaning of these leters?
for example in Shell32.dll we have
GetModuleFileNameExA
GetModuleFileNameExW
Regards.
|
|
|
|
|
A = Multibyte
W = Widechar (UNICODE)
|
|
|
|
|
Is it possible to change colors of system brushes (COLOR_WINDOW,COLOR_3DFACE and so on) for current task only? SetSysColors() makes it for whole system.
|
|
|
|
|
i don't think you can do that. If you are coding a project and you want to isolate the colors that i would suggest you use a global function that does something like.
COLORREF MyGetSysColor( int nIndex )
{
COLORREF clr = 0;
switch( nIndex )
{
case COLOR_WINDOW:
clr = RGB( 255,0,255 );
break;
case COLOR_3DFACE:
clr = RGB( 239, 130, 0 );
break;
default:
clr = ::GetSysColor( nIndex );
break;
};
return clr;
}
Thats probably the best you're going to get away with, that is without changing the entire system's color scheme.
Joseph Dempsey
joseph_r_dempsey@yahoo.com
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."
--anonymous
|
|
|
|
|
I have a dialog based application and when I click a button a modeless dialog appears (Well, it just doesn't appear, I create it). The parent of the modeless dialog is the main dialog. Let's call this modeless dialog Child1. Then I create another modeless dialog Child2 and its parent is Child1. If I close Child2 and then Child1 and if I have other windows on the desktop (other applications running) the main dialog window looses focus and hides behind the other applications' windows. However, if I don't create Child2 and I close Child1 the main Dialog remains on top of the other windows. Yes I could try to use BringWindowToTop or set the z order, but I would like to understand this behaviour.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
Toni78 wrote:
If I close Child2 and then Child1 and if I have other windows on the desktop (other applications running) the main dialog window looses focus and hides behind the other applications' windows.
Does this happen even if no other windows are open?
|
|
|
|
|
DavidCrow wrote:
Toni78 wrote:
If I close Child2 and then Child1 and if I have other windows on the desktop (other applications running) the main dialog window looses focus and hides behind the other applications' windows.
Does this happen even if no other windows are open?
Yes it does. I mean it just looses focus but it can't hide anywhere.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
This is a MFC Bug. Check out Nish article here on CP about that (look for Nishant S).
What happens is that the dialog looses modality, and therefor its "stay on top" feature.
~RaGE();
|
|
|
|
|
|
Thank you RaGE for your help. I looked at the article and it seems to talk about modal dialogs and mine are modeless but nevertheless I didn't really read it carefully so I will have to go back and read it for real this time. Anyways, it is a great help and I am sure that that if I use my brain more efficiently I will find the answer in the article.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
I"m wondering if anyone knows how to make it so VC++ will read in a text document, then create a check box off of Keywords in that document.
Then when the check boxes are checked it will output another text document with the corralating data to that keyword.
any suggestions??
Thanks
James
|
|
|
|