|
No...
I want to do it through my code.
If the Text size is greater than the static control size, i need to split the text in to two line.
Hope you understand my requirement.
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
see me wrote: No...
I want to do it through my code.
Actually adding \n is the correct method. If it's not working, then you're not doing it correctly.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It depends on the style of your static control. SS_SIMPLE will will display the text on a single line with no wrapping. SS_LEFT, SS_CENTER, and SS_RIGHT will automatically break the string and wrap the text to the next line.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Is it possible to hide the application from the tastlist? I have not find any code for it?
|
|
|
|
|
Larsson wrote: hide the application from the tasklist
See here [^]. May be this would give you an idea on how to do this.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
No that program dont work.
|
|
|
|
|
I have (what I believe to me) a rather novel way to do it. I will let you know if it works when I re-release InstaLock again...
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
|
|
this is the code i am using
CWnd pParent;
pParent.ShowWindow(SW_HIDE);
i have designed a custom title bar and placed a bitmap as a minimize icon. but when clicked nothing will happen.
|
|
|
|
|
storyera_storyera wrote: pParent.ShowWindow(SW_HIDE);
This hides the window.
You can use
pParent.ShowWindow(SW_MINIMIZE);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Is that the actual code?
If so, you're creating a local window class object, and hiding it. You're not hiding the parent window at all, since that object isn't the parent window
|
|
|
|
|
Hi
Is there any method to set an image for edit control ???
Sunil
|
|
|
|
|
Override OnEraseBkgnd handler of CEdit and load/draw your bitmap there(BlgBlt etc)
redindian
|
|
|
|
|
heh thanks,,, will try it out
Sunil
|
|
|
|
|
|
heh thanks,,, will try it out
Sunil
|
|
|
|
|
Dear All,
When using pointers , I am getting error like "Access Violation".
What it is ? Why this is coming ?
I know this seems to be a silly question. I dont know any other way.
Help me ...
thanks.
|
|
|
|
|
It is because you access memory that you shouldn't. You probably read or write at an invalid address (0x0000000 or an unitialized pointer). Use your debugger to see where it happens.
|
|
|
|
|
Probably you would be writing to some invalid memory location that you have not yet initialized,
Try using the debugger to get to the root of this problem.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Or you are probably trying to deallocate block of memory which was allocated by another dll
redindian
|
|
|
|
|
Sakthiu wrote: When using pointers
Careful..you could put an eye out with those things!
|
|
|
|
|
Hi all
In a dialog call proc the following lines never allow me debug the block contained as below...
#ifdef _WINDU_SOURCE
case WM_ERASEBKGND:
{
InvalidateRect(hDlg,NULL,FALSE); // ensures painting of buttons in front of background bitmap
if(GetDlgItem(hDlg, IDB_KEY1))
DrawKeyBackground(hDlg, IDB_KEY1, IDB_KEY_MAP_1);
return 0;
}
#endif
I put F9 at DrawKeyBackGround() function but debugger disabled it and I could not debug this function . What is this _WINDU_SOURCE ?
redindian
|
|
|
|
|
It's a pre-processor macro which means that it will be checked before the compilation. If you cannot debug there, it simply means that the macro is not defined thus no code is generated for this section.
|
|
|
|
|
I do not understand . In fact the function inside the block is very important so that the bitmap itself is BlgBlt there . So if code is not generated for this function then the bitmap could not be displayed - but it is displayed !!
redindian
|
|
|
|