my way

整个部门,我和我师父写JAVA,我师父在广东,我在山东.

师父从毕业就进来了,干了六年,手下大概有十个系统在运行,用得多也比较重要的有二三个,六台LINUX SERVER.

什么都不懂的时候,我很高兴自己能进来,在深圳跟他学了两个月:
jsp页中充斥着SQL,从一个.jsp跳到另一个.jsp,class之间很少有关联,开始他告诉我,这是一门很"脏"的语言,我似懂非懂地点头
从最开始到现在,没有在他的代码里面发行一行注释,变量名全部是arg1,arg2,arg3这种,那时我认为这是"牛"的表现
用没有任何插件eclipse3.0写类,用editplus写jsp,javascript,用TOMCAT4.0+JDK1.4+MYQL3.2+Informix7.3,"稳定啊。。",我那时也认为这也很牛



对不起,到现在,那些代码我实在没兴趣看下去了

一个人包办需求,建模,编码,美工,后期维护,功能扩展,机房服务器搬迁,还有客服,开立全部帐户,帮需求单位分析科学性和合理性,这实在是很蠢一件事情.
公司不准上网,不推携带USB等移动存储设备进出
面对一个类和对象是什么都不懂.天天早会只会说"系统什么时候写完".月补贴是我工资十倍的BOSS
不喜欢听台湾话,特别当他们不小心说出"你们国家"

由于公司本身性质造成的环境,师父这种情况的出现,似乎成为一种必然
请别让我养成不好的习惯,请给我一丝光明...
想想六年后的自己.



做一名专业而单纯的程序员,自由自在地学习技术....

兄弟,我们不要再贪恋这里的天气了 LET'S SAY GOODBYE.......
Yes, there is another way to use CToolTipCtrl in an MFC application. Instead of adding the tooltip for a control in the OnInitDialog function, you can add the tooltip for a control in response to a user action, such as clicking a button. Here are the steps to use CToolTipCtrl in this way: 1. Create a CToolTipCtrl object: ```CToolTipCtrl m_ToolTip;``` 2. Initialize the CToolTipCtrl object in the OnInitDialog function of your dialog: ``` BOOL CMyDialog::OnInitDialog() { CDialogEx::OnInitDialog(); // Create the tooltip control m_ToolTip.Create(this); return TRUE; } ``` 3. Add a message map entry for the control that you want to associate with the tooltip: ``` BEGIN_MESSAGE_MAP(CMyDialog, CDialogEx) ON_CONTROL_RANGE(CBN_SELCHANGE, IDC_MYCONTROL1, IDC_MYCONTROL2, &CMyDialog::OnMyControlSelChange) END_MESSAGE_MAP() ``` This message map entry handles the CBN_SELCHANGE message for a range of controls, from IDC_MYCONTROL1 to IDC_MYCONTROL2. 4. Add a handler for the message map entry that adds the tooltip for the control: ``` void CMyDialog::OnMyControlSelChange(UINT nID) { CString strTooltip; // Determine the tooltip text based on the control ID switch (nID) { case IDC_MYCONTROL1: strTooltip = _T("My Tooltip 1"); break; case IDC_MYCONTROL2: strTooltip = _T("My Tooltip 2"); break; } // Add the tooltip for the control m_ToolTip.AddTool(GetDlgItem(nID), strTooltip); } ``` This handler determines the tooltip text based on the control ID and adds the tooltip for the control using the AddTool method. 5. Handle the WM_MOUSEMOVE message in your dialog to display the tooltip: ``` BOOL CMyDialog::PreTranslateMessage(MSG* pMsg) { // Pass mouse messages to the tooltip control m_ToolTip.RelayEvent(pMsg); return CDialogEx::PreTranslateMessage(pMsg); } ``` This method handles the WM_MOUSEMOVE message and passes it to the tooltip control using the RelayEvent method. That's it! Now when the user selects a control, the tooltip will be displayed. You can also remove the tooltip for a control using the DeleteTool method.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值