|
Well all these three styles are applicable only to windows which have title bar and my window doesn't have any titlebar.
|
|
|
|
|
Hi,
Sorry Only_jack....I again tried using these style and it worked.
But now my window dosen't resize ??????
In my window i was handling all four side resizing and moving by testing NcHitTest.
moving is working but resizing is not at all working!!! I don't get any clue about this.
Can you give some idea about this.
Tarun Sharma.
|
|
|
|
|
this style may add a resize border to your window
WS_THICKFRAME
also check this[^] link for all window styles
|
|
|
|
|
Hi all..
How do i use DrawText in animate window. With the help of animate window i'm popping up my dialog box. And in WM_PAINT i'm using DrawText to put some text on Bitmap. DrawText works fine when i don't use animatewindow. But it didn't work when using animatewindow.
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hDC;
hDC = BeginPaint(hWnd, &ps);
RECT r = {0};
HDC hdc_bitmap_text = NULL;
UpdateWindow(hWnd);
GetClientRect(GetDlgItem(hWnd, IDC_NEW_BITMAP), &r);
hdc_bitmap_text = GetDC(GetDlgItem(hWnd, IDC_NEW_BITMAP));
if(hdc_bitmap_text)
{
SetBkMode(hdc_bitmap_text, TRANSPARENT);
SetTextColor(hdc_bitmap_text, RGB(0,0,0));
DrawText(hdc_bitmap_text,
iCm->BitmapMessage,
-1,
&r,
DT_SINGLELINE | DT_CENTER | DT_VCENTER);
ReleaseDC(GetDlgItem(hWnd, IDC_NEW_BITMAP), hdc_bitmap_text);
hdc_bitmap_text = NULL;
}
EndPaint(hWnd, &ps);
break;
}
modified on Thursday, October 16, 2008 7:25 AM
|
|
|
|
|
|
It might be silly question.. But where to put Redraw??
|
|
|
|
|
I suggest at the end of the block, after DrawText.
|
|
|
|
|
Thanks.. But it's not working.. Tried different Flags also.. Does DrawText ever works with AnimateWindow or Moving Dialog??
|
|
|
|
|
I think its better you use of WM_TIMER for DrawText .
|
|
|
|
|
I agree, WM_TIMER will work fine
|
|
|
|
|
|
CFileFind class has infos about the details of the found files. So you can do what you want.
Greetings from Germany
|
|
|
|
|
I suppose he need filtering and sorting the file content.
Anyway this is going on my arrogant assumptions [...], since OP's question is rather ambiguos.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
See i have a log file.And this log file data is store like this.
Day/Date Student Name In/Out Time.
Thu Oct 6 14:43:16 2008 Abc 10
Thu Oct 1 14:43:17 2008 Abc1 10
Thu Oct 7 14:43:19 2008 Abc2 10
Thu Oct 9 14:43:21 2008 Abc3 10
Thu Oct 17 14:43:16 2008 Abc4 10
Now i want to sort these file according to Day/Date and store in new log file.
Sorted Data is
Day/Date Student Name In/Out Time.
Thu Oct 1 14:43:16 2008 Abc 10
Thu Oct 6 14:43:17 2008 Abc1 10
Thu Oct 7 14:43:19 2008 Abc2 10
Thu Oct 9 14:43:21 2008 Abc3 10
Thu Oct 17 14:43:16 2008 Abc4 10
Plz help me
|
|
|
|
|
You may use awk [^].
You may read one line at time and then use strtok to separate tokens, then add token values to your data structure, eventually perform filtering and sorting on the latter (array of).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
lpVCcode wrote: in/out.Trim()
Interesting: what language does allow you the above?
BTW Since you're also writing the file, you may consider a different format, 'more machine-reading-friendly', this will simplify the parsing in order to filter & sort the info.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Interesting: what language does allow you the above?
English allows it.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
I strongly doubt my English teacher would kindly accept the empty brackets...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
The teacher may not, but the language allows the empty brackets and other funny things like... li..ke an OWL:
, _ ,
( o o )
/'` ' `'\
|'''''''|
|\\'''//|
"""
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Cheater! That's NOT allowed by the language, it is just allowed by Chris.
[military tone]
Sir, glorious day for the THHB!
[/military ton]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: [military tone]
Sir, glorious day for the THHB!
[/military ton]
Yes, SIR..
Regards,
Sandip.
|
|
|
|
|
CPallini wrote: Interesting: what language does allow you the above?
My language. 
|
|
|
|
|
Persian?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
no I invented an language of course thats code is of your site like previous. 
|
|
|
|