|
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=1027498&df=100&msg=1027498#xxxx[^]
Honoured as one of The Most Helpful Members of 2004
.
________________________________________
Many nights we've prayed with no proof anyone could hear, we were moving moutains long before we knew we could!
Yet now i'm standing here, although we know there's much to fear, hope seemed like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill!
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
Lam 3:23 [They are] new every morning: great [is] thy faithfulness.
2005-01-08 Encourage others, encourage myself! Thank God!
2005-01-07 Solving SendMessage Problem. New world. Thank God!
2005-01-06 God's Grace is so abundant! ^.^ http://www.teachinghearts.org/dre01mainkidsnotes.html[^]
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
|
|
|
|
|
There are so many things learn every day! write it down or i've forgotten!
Thank God!
2005-01-06 Update name using new style - thank Angel1058
2005-01-06 MD5 Crack : http://www.cstc.net.cn/newscenter/newswhole.php?id=258[^]
2005-01-06 Windows Message Handling : http://www.codeproject.com/dialog/messagehandling.asp[^] - thank Daniel Kopitchinski
2005-01-04 VC bracket matching: Ctrl + ] - thank Professor Hong
2005-01-02 the same age as mine... i should work harder!! http://www.xdanger.com/[^] - thank YunJie Dai
2004-12-31 "...SDI application..." using the right words to express - thank Rahim Rattani
2004-12-30 MessageBox("Put the code in the right way") - thank Rahim Rattani
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
2005-01-05 bold italic underline strike through small big
pre code < > &
- list1
- list2
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
2005-01-05 <b>bold</b> <i>italic</i> <u>underline</u> <strike>strike through</strike> <small>small</small> <big>big</big> <pre>pre</pre> <code>code</code> < > & <a href=""></a>
<font size=1> - - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
|
it's really my fault! i mess it up.
But those guys are so kind!!!!!!!!
i learn so much!!!
Thank God!! God Bless!!!!!!!
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
Question:
Hi,Everyone:
i create a project CFormView as its base class. i add "List Control" in the Mainform, and i use the "List Control" with code below:
-----------------------------------------------------------------------
class CvcydcjView : public CFormView
void CvcydcjView::OnInitialUpdate()
{
...
CListCtrl* pList = (CListCtrl*) GetDlgItem( IDC_LIST_MEM);
pList->InsertColumn(0, "Thank God!", LVCFMT_CENTER,40);
...
}
-----------------------------------------------------------------------
now i want to use the control in my other class, obviously i can't use that code to get the DlgItem, can anyone help me to solve the problem? Thank you so much!
Solution:
First Obtain the ptr of view class "CvcydcjView"
as
CMainFrame* pMainFrmWnd = (CMainFrame*)AfxGetMainWnd();
ASSERT(pMainFrmWnd != NULL);
CvcydcjView* pYourView = NULL;
CWnd* pchildWnd = pMainFrmWnd->GetWindow(GW_CHILD);
ASSERT(pchildWnd->GetSafeHwnd() != NULL);
while(childWnd->GetSafeHwnd() != NULL)
{
ASSERT(childWnd->GetSafeHwnd() != NULL);
if(childWnd->GetRuntimeClass()->m_lpszClassName == "CvcydcjView")
{
pYourView = (CvcydcjView*)childWnd;
break;
}
childWnd = childWnd->GetWindow(GW_HWNDNEXT);
}
ASSERT(pYourView != NULL);
Now you have got ptr to your class you can call the functions as
CListCtrl* pList = (CListCtrl*)pYourView->GetDlgItem( IDC_LIST_MEM);
pList->InsertColumn(0, "TestColumn", LVCFMT_CENTER,40);
At the moment i dont remember whether GetDlgItem() is public or not.
If its not public create your own function that should be public which calls GetDlgItem inside the class as
The below is the public function
CWnd* CvcydcjView::getItem(UINT p_nResourceID)
{
return GetDlgItem(p_nResourceID);
}
now call this function form your other class as
CListCtrl* pList = (CListCtrl*)pYourView->getItem( IDC_LIST_MEM);
pList->InsertColumn(0, "TestColumn", LVCFMT_CENTER,40);
..RR..
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
What does a Platinum Mean? --try best to be professional, always! --even a single reply... I’m really moved! And learnt so much! And I’m just so lucky!!! The luckest boy in the world! ^.^
I’m really so moved, it’s so beautiful a world here! Last time I asked a question and Thank *Dreamz! He is so patient and at last he understood my question!(You know the way I ask questions ... I’ll try to be better) and solved the problem! And this time, it’s a big guy! Who is Platinum!
Why I’m so surprised is because I’ve asked several people surroundded me (from the day i was born)who are pretty good at vc or something else(I admitted they’re genius at something), but they seem so impatient with my silly questions, I don’t envy them(i think it's normal and cos big guy has the privilege to be impatient,some are really busy,,, some "big guy" with quotation marks - we use this to doubt sth.), but tell the truth, they don’t gain respect from me either.
Now things totally changed, God let me know there is another world, it’s so great to be here. Thank God!
Luk 6:31
And as ye would that men should do to you, do ye also to them likewise.
Now I know that sometimes (should be always, God Bless)I needn’t care about the material gains so much, don’t care about myself so much, try to be patient, try to be kind to others... God’s words are so REAL! Thank God! God Bless everyone!
now i start to read the answer you offered me, cos i was so excited just now to read it! Thank you! Dear Joseph ! God Bless you!
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
|
God bless!
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
Learn Vc is such a great fun! ^.^
Thank you! *Dreamz !!!!!!!
-------------------------
Best Wishes sehsiW tseB
-------------------------
You will when you believe!
-------------------------
|
|
|
|
|
Don't give up
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
Q:
Hi,everyone. i'm a newbie of VC,i'm sorry if the question bother you(actually it's the second time)...
Here it is:
when i first added the component Microsoft DataGrid Control, Version 6.0(OLEDB), and added a member variable to a class by Class Wizard.i got the following dialog:
"The ActiveX Control "Microsoft DataGrid Control, Version 6.0(OLEDB)" has not been inserted into the project. Developer Studio will do this now and generate a C++ wrapper class for it."
but I didn't do it rightly, so I wanted to delete it. (I think i must delete it in a wrong way and left something!) I navigated to the variable in the header file, and I deleted it.
when I tried to reinsert the variable (once again by using Class Wizard, and choosing Add Member Variable), the former dialog didn't come out,instead, "Add Member Varible" dialog appears and the varible type datagrid1 exsits and i can't use it properly. i have searched in files i can't find string "datagrid" anymore,why does the compiler remember that
it seems the compiler has remembered my option and would't like to give me another choice
i don't know how to do,and hope someone can help me,Thank you so much!
Best wishes,
S:
Delete all the newly added files for the DataGrid from your workspace and from the current working folder...
Delete the include for datagrid.h and Rebuild all...
Open the Project' .dsp file in a notepad.Towards the end of the file there will be some entries for the newly added files for the DataGrid.
eg:
# Section CPTest : {CDE57A43-8B86-11D0-B3C6-00A0C90AEA82}
# 2:21:DefaultSinkHeaderFile:datagrid.h
# 2:16:DefaultSinkClass:CDataGrid
# End Section
Delete all those sections for the classes that we deleted..
Rebuild All...Now do what you want..You will get "Your Message" dialog..
Note:
Dear Dick.lee Solucky...
This is what i tried by created an application like yours...
I am not sure that this is a right way or not...
So if you use this,please make a copy of your application and proceed...please..
I could build the application without any error....
Good Luck
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
Lam 3:23 [They are] new every morning: great [is] thy faithfulness.
Thank God! ^.^ This morning received a letter from Patricia who is looking after Code Project's storefront (i hope it's not a system automatic letter ) i feel so warm! in this cold winter Someone noticed me here,Besides God.
This is really good place! i learn, and i now find i begin to live here... like a family. there are greetings
Thank God! God Bless everyone.
---------------------------
You will when you believe!
------------------------
|
|
|
|
|
And as ye would that men should do to you, do ye also to them likewise.
Thank *Dreamz .
---------------------------
You will when you believe!
------------------------
|
|
|
|
|
Luk 6:31 And as ye would that men should do to you, do ye also to them likewise.
yes,exactly!
God, Your words are so powerful! full of wisdom!
wish we can like Prophet Jeremiah:
Jer 15:16 Thy words were found, and I did eat them; and thy word was unto me the joy and rejoicing of mine heart: for I am called by thy name, O LORD God of hosts.
---------------------------
You will when you believe!
------------------------
|
|
|
|
|
1. OTA.ZJ -> CMPTT ; -- Deadline: 2004-12-17
a> Current sheets no influence;
b> Arrage time well according to different period of time,for example,process more when it's 0:00 ...
2. Get the connection numbers of "JKJT" System(updated) of Zhejiang Mobile ;
to be continue..
-- The people here are really so professional! learn,learn,learn!
Thank God! ^.^
---------------------------
You will when you believe!
------------------------
|
|
|
|
|
CALL ATTEMPTS = 150131 BEHAVIOUR INDICATOR = 94 %
O TERM
| 0
###################################################
# | #
# +----------O----------+ #
# MS-TERM| ORIG-TERM| INC-TERM| #
# 0| 0| 0| #
MS # +-------------------------+ MS-MS #
O---------#--->-----| |-----------+ #
81856 # | | 7788| #
# | D I G I T | | #
ORIG # | - | ORIG-MS| # MS
O---------#--->-----| A N A L Y S I S |-----------O-#---------O
0 # | | 0| # 136848
# | | | #
INC # | | INC-MS| #
O---------#--->-----| |-----------+ #
64489 # +-------------------------+ 55318 #
# MS-OUTG| ORIG-OUTG INC-OUTG| #
# 62346| 0| 1426| #
# +----------O----------+ #
# | #
###################################################
| OUTG
O 62693
---------------------------
You will when you believe!
------------------------
|
|
|
|
|
what we see may be not we get...
---------------------------
You will when you believe!
------------------------
|
|
|
|
|